Skip to content

Commit fa91990

Browse files
committed
Use gunicorn to run in Heroku
1 parent 979c5d2 commit fa91990

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: python manage.py runserver 0.0.0.0:$PORT --noreload
1+
web: gunicorn -b "0.0.0.0:$PORT" -w 3 tutorial.wsgi

requirements.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ Django==1.11.7
33
Pygments==2.2.0
44
Markdown==2.6.3
55
coreapi==2.3.3
6-
7-
# heroku
8-
# run these commands to setup heroku properly
9-
# heroku create --stack cedar --buildpack git://github.com/heroku/heroku-buildpack-python.git
10-
# heroku config:add BUILDPACK_URL=git@github.com:heroku/heroku-buildpack-python.git#purge
11-
# heroku config:set HEROKU=1
126
psycopg2==2.7.3.2
137
dj-database-url==0.4.2
8+
gunicorn==19.7.1

0 commit comments

Comments
 (0)