Hi,
I used this:
import os
import uwsgi
reloads = os.environ.get('UWSGI_RELOADS', '0')
print "Reloads => ", reloads
if reloads == '0':
print "Reloading ..."
uwsgi.reload()
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
It prints only once the "Reloads => 0", and once the "Reloading ..."
but it didn't reload (it seems, but i don't really know, how can I
check).
I'm runing uwsgi with:
/usr/local/bin/uwsgi -x django.xml
with django.xml:
<uwsgi>
<chroot>/path/chroot</chroot>
<chdir>/path/chroot</chdir>
<home>/inside/env</home>
<gid>1000</gid>
<uid>1000</uid>
<vacuum />
<!-- master /-->
<no-orphans />
<processes>4</processes>
<chmod-socket>750</chmod-socket>
<socket>/inside/django.sock</socket>
<pythonpath>/inside/app</pythonpath>
<pythonpath>/inside/app/testing</pythonpath>
<env>DJANGO_SETTINGS_MODULE=testing.settings</env>
<!-- module>django.core.handlers.wsgi:WSGIHandler()</module-->
<module>uwsgi_app</module>
</uwsgi>
uwsgi_app.py as I show above.
With this configuration it keeps appearing the error.
PD: Is there a way to compile uwsgi statically against a non default
libc6? I tried but i couldn't do it, I had did export
LDFLAGS='-static' before the command make, but it rais a lot of error
on the math library, which is include with -lm.
On Thu, Jan 20, 2011 at 2:12 AM, Roberto De Ioris <[email protected]> wrote:
>
>>
>>
>> # is this the uWSGI binary in the main system ?
>> if reloads == 0:
>>
>
> Sorry, here is
>
> if reloads == '0':
>
> (as string not number)
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
--
Jorge Eduardo Cardona
[email protected]
jorgeecardona.blogspot.com
------------------------------------------------
Linux registered user #391186
Registered machine #291871
------------------------------------------------
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi