Skip to content

Commit

Permalink
Looks like the debug parameter has no effect
Browse files Browse the repository at this point in the history
  • Loading branch information
suminb committed Feb 18, 2017
1 parent 4f13e6a commit 92e512e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
port = int(os.environ.get('PORT', 8024))
debug = bool(os.environ.get('DEBUG', 0))

app = create_app()
app.run(host=host, port=port, debug=debug)
app = create_app(config={'DEBUG': debug})
app.run(host=host, port=port)

if app.config['DEBUG']:
from werkzeug import SharedDataMiddleware
Expand Down

0 comments on commit 92e512e

Please sign in to comment.