login community faq

Does it make sense to create only one static files application for different websites?

For example, in the static files directory, I would have a subdirectory for different websites.

If this were to be done, how would I link the subdirectories of the static files application to the static urls of the websites?

asked Jul 29 '12 at 15:21

Heuristix's gravatar image

Heuristix
1


Not really, you could do it, but after adding more sites it makes management harder. It is really up to you however. You would have to edit the application code which defines media URLs to do a custom solution like this.

answered Jul 29 '12 at 17:08

johns's gravatar image

johns ♦♦
340427

edited Jul 29 '12 at 17:09

It seems messier to make new static applications for every accompanying application.

i.e. my webapps directory will have two folders for every app (<app_name> and static-<app_name>).

If this is the best way to do it , I will do it that way.

(Jul 29 '12 at 18:04) Heuristix Heuristix's gravatar image

Issues arise when you need to move applications around in the future. Say you want to break up your media and put it on a CDN, but only for 1 site, or you want to use multiple servers on our platform in various configurations, having them separated can make future management of each individual app easier. But, it is completely up to your code/deployment/maintenance style. It has no real technical difference.

(Jul 29 '12 at 20:37) johns ♦♦ johns's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×643
×90

Asked: Jul 29 '12 at 15:21

Seen: 345 times

Last updated: Jul 29 '12 at 20:37

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited