2👍
One of the changes in later versions of gunicorn includes not logging to stdout/stderr. Add the argument –log-file=XXX, then examine that log file for what port it’s running on.
- [Django]-Django Form Automatically select first option if only one choice available
- [Django]-Django with PIL – '_io.BytesIO' object has no attribute 'name'
- [Django]-Why can "docker-compose run" create files outside the container?
- [Django]-Cannot assign must be a instance Django
0👍
write this in your Procfile:
web: gunicorn hellodjango.wsgi --log-file -
it will log everything to the screen like this:
(your_virtualenv)[~/Projects/myproj]$ foreman start
17:03:57 web.1 | started with pid 79137
17:03:58 web.1 | 2014-10-16 17:03:58 [79137] [INFO] Starting gunicorn 19.0.0
17:03:58 web.1 | 2014-10-16 17:03:58 [79137] [INFO] Listening at: http://0.0.0.0:5000 (79137)
17:03:58 web.1 | 2014-10-16 17:03:58 [79137] [INFO] Using worker: sync
17:03:58 web.1 | 2014-10-16 17:03:58 [79140] [INFO] Booting worker with pid: 79140
👤Nimo
- [Django]-Suds.TypeNotFound: Type not found: 'MerchantCode'
- [Django]-Displaying pyqtgraph and pyqt widgets on web
- [Django]-In Django Celery how can I tell if a task has been executed asynchronously
- [Django]-Trouble with chaining Q() objects with the same argument in Django's ORM
Source:stackexchange.com