문제

I run my uwsgi in the simplest way possible, as a process managed by upstart, no emperor mode or anything. This is what I get if application fails on startup for some reason:

[traceback skipped]
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 17923)
spawned uWSGI worker 1 (pid: 17948, cores: 1)
...

I have no use for this mode, and would like it to shut down completely, so my upstart job shows as stopped.

How can I do this?

도움이 되었습니까?

해결책

The option

--need-app

will do the trick

다른 팁

If you are loading your Uwsgi server through .ini file, add the below arg:

need-app = true

This will start the server only if the app is running fine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top