Skip to content

Commit

Permalink
Moved from 'DEBUG' envvar to 'FLASK_ENV'
Browse files Browse the repository at this point in the history
  • Loading branch information
Akronix committed Aug 29, 2018
1 parent e8d97ec commit d66e3dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ For instance, suppose that your data is stored in `/var/tmp`, you might launch w

It will show all the files ending in .csv as wikis available to analyze and plot.

## Development environment

To get errors messages, backtraces and automatic reloading when source code changes, you must set the environment variable: FLASK_ENV to 'development', i.e.: `export FLASK_ENV=development` prior to launch `app.py`.

You can get more information on this in the [Flask documentation](http://flask.pocoo.org/docs/1.0/server/).

# Deployment
The easiest way is to follow the Dash instructions: https://plot.ly/dash/deployment

Expand Down
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# production or development (DEBUG) flag:
global debug;
debug = 'DEBUG' in os.environ
debug = True if os.environ.get('FLASK_ENV') == 'development' else False

# get csv data location (data/ by default)
global data_dir;
Expand Down

0 comments on commit d66e3dd

Please sign in to comment.