On 04/02/2015, at 10:52 PM, Paul Royik <[email protected]> wrote:
> I created separate application and serve files from there.
>
> "Or do you believe that WebFaction is relying on django.contrib.staticfiles
> for serving up static file assets even though it isn't recommended for
> production? " I don't know.
I am going to take that as meaning you followed steps in:
http://docs.webfaction.com/software/django/config.html#serving-django-static-media
It is past 11pm now and I don't want to be giving you the instructions right
before I sleep so will continue this tomorrow night.
There is only one thing I am not 100% sure on right now and that is how
Webfaction handles log rotation.
They say they rotate logs here:
http://docs.webfaction.com/software/general.html#accessing-logs
and they use logrotate to do that.
Normally logrotate is setup to send a signal to a web server to reload after
the log file has been renamed.
I can't see how WebFaction is sending that signal though as they claim to
rotate any log file in that directory no matter what creates it.
I can only assume they use the copytruncate option for logrotate to avoid
sending a signal. That is, copy the log file and then truncate the original.
I will assume that is the case initially.
Anyway, I believe I have it all sorted as to what is going to be the easiest
way to transition.
Before I outline that, I might suggest you have a play with mod_wsgi-express on
your own personal system at home if you have Linux or MacOS X. By doing that
you will have an idea what I intend to describe you switch to. Key thing is
that the Apache configuration will be generated automatically, which is
different to what you might be used to.
So have a look at:
https://pypi.python.org/pypi/mod_wsgi
If you don't have working Apache on your own system that 'pip install mod_wsgi'
works against, you can do the 'pip install mod_wsgi-httpd' again and it will
setup a usable Apache for you which will then be used.
This is all for your personal system for now and not on WebFaction.
For WebFaction there is going to be a bunch of options that will need to be
specified to mod_wsgi-express when setting up a configuration to satisfy
various requirements they have. No harm playing with it at home though first.
Graham
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.