trying different app.run for heroku
This commit is contained in:
parent
a9d8af7709
commit
0c77288d56
1 changed files with 2 additions and 1 deletions
|
|
@ -37,4 +37,5 @@ def data(nation):
|
||||||
return jsonify({'results':df2[nation].astype(float).tolist(), 'labels':df2.index.astype(float).tolist()})
|
return jsonify({'results':df2[nation].astype(float).tolist(), 'labels':df2.index.astype(float).tolist()})
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
port = int(os.environ.get("PORT", 5000))
|
||||||
|
app.run(host='0.0.0.0', port=port)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue