>> [uwsgi] >> ... >> py-autoreload = 1 >> hook-post-app = cmd:%(virtualenv)/bin/python %(chdir)/manage.py test >> --liveserver=localhost:8423-9078 fooapp >> >> with those 2 options combined, your instance will die as soon as the >> test fails >> >> >> >> -- >> Roberto De Ioris >> http://unbit.it >> _______________________________________________ >> > > Thanks Roberto, > I have tried your way but i having another error : hook action not found, > please see output below > *** Starting uWSGI 2.0.5.1 (64bit) on [Wed Jun 18 17:11:28 2014] > ***compiled with version: 4.2.1 Compatible FreeBSD Clang 3.3 > (tags/RELEASE_33/final 183502) on 02 June 2014 13:38:15os: > FreeBSD-10.0-RELEASE-p12 FreeBSD 10.0-RELEASE-p12 #0: Wed Jun 4 14:50:48 > UTC 2014 > [email protected]:/usr/obj/usr/src/sys/GENERICmachine: > amd64clock source: unixpcre jit disableddetected number of CPU cores: > 2current working directory: /usr/home/duvaxwriting pidfile to > /tmp/tmp.pidyour processes number limit is 9000your memory page size is > 4096 bytesdetected max file descriptor number: 91386lock engine: POSIX > semaphoresthunder lock: enableduwsgi socket 0 bound to TCP address > 127.0.0.1:8000 fd 7Python version: 2.7.6 (default, Mar 4 2014, 19:30:28) > [GCC 4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final > 183502)]Python main interpreter initialized at 0x803c26300python threads > support enabledyour server socket listen backlog is limited to 100 > connectionsyour mercy for graceful operations on workers is 60 > secondsmapped 310944 bytes (303 KB) for 8 cores*** Operational MODE: > preforking+threaded ***WSGI app 0 (mountpoint='') ready in 1 seconds on > interpreter 0x803c26300 pid: 15265 (default app)hook action not found: > %(virtualenv)//bin/python %(chdir)/manage.py test > --liveserver=localhostVACUUM: pidfile removed. > On the side i noticied that the hook action command printed command( > above) is not complete. the whole command is : > hook-post-app = %(virtualenv)/bin/python %(chdir)/manage.py test > --liveserver=localhost:8423-9078 fooapp > --settings=project.settings.development > Any reasons why this is happening ? > > Thanks, > Richard >
the syntax of hooks is action:arg in your case you missed the cmd: action -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
