Skip to content

Commit

Permalink
Attempt to fix unbit/uwsgi#1623
Browse files Browse the repository at this point in the history
  • Loading branch information
pflickin committed Apr 13, 2019
1 parent cb2c240 commit dc0dfd0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/detector_synchronous/api/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ nodaemon=true

[program:uwsgi]
directory=/app/animal_detection_api/
command=/usr/local/envs/ai4e_py_api/bin/uwsgi --virtualenv /usr/local/envs/ai4e_py_api --callable app --http 0.0.0.0:8024 -b 32768 --wsgi-disable-file-wrapper --die-on-term --enable-threads --wsgi-file /app/animal_detection_api/runserver.py --log-date="%%Y-%%m-%%d %%H:%%M:%%S" --logformat-strftime
command=/usr/local/envs/ai4e_py_api/bin/uwsgi --ini /uwsgi.ini -b 32768 --logformat-strftime
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stdout
Expand Down
15 changes: 15 additions & 0 deletions api/detector_synchronous/api/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[uwsgi]
harakiri = 240
http-timeout = 240
socket-timeout = 240
worker-reload-mercy = 240
reload-mercy = 240
mule-reload-mercy = 240
virtualenv = /usr/local/envs/ai4e_py_api
callable = app
wsgi-disable-file-wrapper = true
die-on-term = true
enable-threads = true
wsgi-file = /app/animal_detection_api/runserver.py
log-date = "%%Y-%%m-%%d %%H:%%M:%%S"
http = 0.0.0.0:8024

0 comments on commit dc0dfd0

Please sign in to comment.