Skip to content

Commit

Permalink
gunicorn support
Browse files Browse the repository at this point in the history
  • Loading branch information
arihant2math committed Nov 7, 2023
1 parent cb1f43f commit e41d238
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gunicorn.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from website.app import create_app
from website.config import BaseConfig
import os


def app(db, secret_key):
BaseConfig.SECRET_KEY = secret_key
BaseConfig.SQLALCHEMY_DATABASE_URI = db
def app():
BaseConfig.SECRET_KEY = os.environ.get("SECRET_KEY")
BaseConfig.SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL")
return create_app()
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
flask
gunicorn
requests
click
autotraders>=1.6.1
Expand Down

0 comments on commit e41d238

Please sign in to comment.