We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 867b1c4 commit f327e67Copy full SHA for f327e67
app.py
@@ -120,8 +120,9 @@ def about():
120
return render_template('credits.html',t=title,h=heading)
121
122
if __name__ == "__main__":
123
- env = os.environ.get('APP_ENV', 'development')
+ env = os.environ.get('FLASK_ENV', 'development')
124
port = int(os.environ.get('PORT', 5000))
125
debug = False if env == 'production' else True
126
- app.run(host='0.0.0.0', port=port, debug=debug)
+ app.run(debug=True)
127
+ app.run(port=port, debug=debug)
128
# Careful with the debug mode..
requirements.txt
@@ -1,3 +1,2 @@
1
-bson==0.5.10
2
Flask==2.1.3
3
pymongo==4.2.0
0 commit comments