Skip to content

Commit 77f06f7

Browse files
committed
Update procfile and startup for Heroku.
1 parent c59bf34 commit 77f06f7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Procfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: gunicorn run:app
1+
web: gunicorn run:app -b 0.0.0.0:$PORT -w 3

run.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
"""Create an application instance."""
12
from app import create_app
23
import os
34

4-
port = int(os.environ.get('PORT', 5000))
5+
#port = int(os.environ.get('PORT', 5000))
56
app = create_app(env='prod') #Or pass 'live' to NOT be in debug mode
6-
app.run(host='0.0.0.0', port=port)
7+
#app.run(host='0.0.0.0', port=port)

0 commit comments

Comments
 (0)