Skip to content
Snippets Groups Projects
Commit ac68575f authored by Felix Chadwick-Smith's avatar Felix Chadwick-Smith
Browse files

Fix issue with retrieving the PORT environment variable

parent fa740c8f
Branches main
No related tags found
1 merge request!2Master
...@@ -87,7 +87,7 @@ if __name__ == '__main__': ...@@ -87,7 +87,7 @@ if __name__ == '__main__':
db.create_all() db.create_all()
# Retrieve the assigned port or default to 5000 # Retrieve the assigned port or default to 5000
port = int(os.environ.get('PORT', 5000)) port = int(os.getenv('PORT', 5000))
# Run the app # Run the app
app.run(debug=True, port=port) app.run(debug=True, port=port)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment