trying different app.run for heroku

This commit is contained in:
Walker Waylon Scott 2017-05-19 21:52:17 -05:00
parent a9d8af7709
commit 0c77288d56

View file

@ -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)