Skip to content

Commit b47847b

Browse files
author
ExpDev07
committed
modify gunicorn for production
1 parent 58633e0 commit b47847b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: gunicorn app:app
1+
web: gunicorn app:create_app\(\)

app/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
from flask_cors import CORS
33
from . import settings
44

5-
if __name__=='__main__':
6-
app = create_app()
7-
app.run(host='0.0.0.0')
8-
95
def create_app():
106
"""
117
Construct the core application.

0 commit comments

Comments
 (0)