Skip to content

Commit c4d26ad

Browse files
committed
uwsgi modifications for heroku deployment
1 parent f34d3b4 commit c4d26ad

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
release: python manage.py migrate --no-input
2-
web: gunicorn apiconfig.wsgi.application --log-file -
2+
web: uwsgi wsgi/uwsgi.ini

wsgi/uwsgi.ini

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
[uwsgi]
2-
die-on-term = true
32
http-socket = :$(PORT)
4-
log-format = UWSGI uwsgi "%(method) %(uri) %(proto)" %(status) %(size) %(msecs)ms [PID:%(pid):Worker-%(wid)] [RSS:%(rssM)MB]
53
master = true
6-
max-requests = 100
7-
memory-report = true
8-
module = apiconfig.wsgi:application
94
processes = 4
10-
static-map = /static=/app/static
5+
die-on-term = true
6+
module = apiconfig.wsgi:application
7+
memory-report = true

0 commit comments

Comments
 (0)