supervisord - ImportError: No module named 'gunicorn' -


i use gunicorn +supervisor deploy django project in ubuntu server.

weather.conf

[group:weather_station] programs=site

[program:site] directory=/home/user/project/weather_station command=/home/user/.local/bin/gunicorn -c /home/user/project/weather_station/gunicorn.conf.py -p gunicorn.pod weather_station.wsgi autostart=true autorestart=true stdout_logfile=/var/log/supervisor.log 

however,when execute /home/user/.local/bin/gunicorn -c /home/user/project/weather_station/gunicorn.conf.py -p gunicorn.pod weather_station.wsgi

it can work

but when use command sudo supervisorctl reload

then error message in status

file "/home/user/.local/bin/gunicorn", line 7, in gunicorn.app.wsgiapp import run importerror: no module named 'gunicorn'

is there suggestion?

thanks!!!


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -