-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb1f43f
commit e41d238
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
flask | ||
gunicorn | ||
requests | ||
click | ||
autotraders>=1.6.1 | ||
|