I just did, and didn't work: # /usr/local/bin/uwsgi -x django.xml [uWSGI] parsing config file django.xml *** Starting uWSGI 0.9.6.5 (64bit) on [Thu Jan 20 19:44:58 2011] *** compiled with version: 4.3.2 Python version: 2.6.6 (r266:84292, Dec 26 2010, 22:48:11) [GCC 4.4.5] uWSGI running as root, you can use --uid/--gid/--chroot options chroot() to /xxx/xxxxx/xxxx/xxxxxx/chroot setgid() to 1000 setuid() to 1000 your memory page size is 4096 bytes allocated 640 bytes (0 KB) for 1 request's buffer. Setting PythonHome to /xxxx/xxxxx/env... binding on UNIX socket: /xxxx/xxxxxx/django.sock your server socket listen backlog is limited to 64 connections added /xxxxx/xxxxxx/app to pythonpath. added /xxxx/xxxxxx/app/xxxxxx to pythonpath. initializing hooks...done. Reloads => 0 Reloading ... ...getting the applications list from the 'uwsgi_app' module... uwsgi.applications dictionary is not defined, trying with the "applications" one... applications dictionary is not defined, trying with the "application" callable. application 0 () ready setting default application to 0 spawned uWSGI master process (pid: 28956) spawned uWSGI worker 1 (pid: 28957) spawned uWSGI worker 2 (pid: 28958) spawned uWSGI worker 3 (pid: 28959) spawned uWSGI worker 4 (pid: 28960)
Thanks. On Thu, Jan 20, 2011 at 2:30 PM, Roberto De Ioris <[email protected]> wrote: > >> 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 /--> > > You need to enable the master to use successfully > the uwsgi.realod() function > > > -- > 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
