11๐
โ
The issue is that you are missing the directory=...
in your config file
[program:sitepro]
command = /home/user/sitepro/bin/gunicorn sitepro.wsgi:application --bind mywebsite.fr:8002
directory = /home/user/sitepro/site
user = user
autostart = true
autorestart = true
Otherwise gunicorn will not know where to find sitepro.wsgi:application
๐คTarun Lalwani
6๐
To see what is going on, you should log the supervisor output.
To do that, open the supervisor .conf file, and add the following lines:
stdout_logfile={Path}
stderr_logfile={Path}
autostart=true
autorestart=true
startsecs=10
A possible {Path} could be /home/{youruser}/sitepro.log
Restart supervisor
supervisorctl restart sitepro
Once restarted, go to the log and tell us what you see.
๐คDaniel Julian
- Schedule number of web dynos by time of day
- How do you raise a python exception and include additional data for Sentry?
- How to get all objects by instance in django
0๐
in my .conf (supervisor) file:
command = /home/user/sitepro/bin/gunicorn sitepro.wsgi:application --bind mywebsite.fr:8002
Double-check the directory path: (/home/user/sitepro/bin/gunicorn sitepro.wsgi:application
)
You may have inputted the incorrectly path
๐คHoangYell
- Run simultaneously UWSGI and ASGI with Django
- Django: Best Way to Add Javascript to Custom Widgets
- Django form with fields from two different models
- Test if ValidationError was raised
Source:stackexchange.com