Skip to content

Commit

Permalink
allow env var for API configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Crown committed Dec 20, 2016
1 parent b101772 commit 609bb2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions har_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def create_app():
api = Api(app)

app.config.from_object('har_api.settings')
app.config.from_envvar('APP_SETTINGS', silent=True)

create_routes(api)

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"Flask-RESTful",
"Flask-SQLAlchemy",
"haralyzer",
"pymysql",
"python-dateutil",
"redis",
"six",
Expand Down

0 comments on commit 609bb2a

Please sign in to comment.