Skip to content

Commit 523c54c

Browse files
gunicorn support
1 parent 2a436a9 commit 523c54c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
web: flask run
1+
web: gunicorn system.wsgi:app
22
webhook: flask webhook
33
upgrade: flask db upgrade

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Flask==1.0.2
99
Flask-Migrate==2.4.0
1010
Flask-SQLAlchemy==2.3.2
1111
future==0.17.1
12+
gunicorn==19.9.0
1213
idna==2.8
1314
itsdangerous==1.1.0
1415
Jinja2==2.10

system/wsgi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from system.app import create_app
2+
3+
4+
app = create_app()

0 commit comments

Comments
 (0)