Skip to content

Commit f327e67

Browse files
chore: 🔧 use FLASK_ENV instead
Signed-off-by: Prashant Shahi <me@prashantshahi.dev>
1 parent 867b1c4 commit f327e67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ def about():
120120
return render_template('credits.html',t=title,h=heading)
121121

122122
if __name__ == "__main__":
123-
env = os.environ.get('APP_ENV', 'development')
123+
env = os.environ.get('FLASK_ENV', 'development')
124124
port = int(os.environ.get('PORT', 5000))
125125
debug = False if env == 'production' else True
126-
app.run(host='0.0.0.0', port=port, debug=debug)
126+
app.run(debug=True)
127+
app.run(port=port, debug=debug)
127128
# Careful with the debug mode..

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
bson==0.5.10
21
Flask==2.1.3
32
pymongo==4.2.0

0 commit comments

Comments
 (0)