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

specified it to run 8080 on wsgi.py file

parent 130a9582
No related branches found
No related tags found
1 merge request!7specified it to run 8080 on wsgi.py file
......@@ -86,3 +86,5 @@ def download_assessment(filename):
app.logger.exception(f"Error serving assessment file: {str(e)}")
abort(500)
if __name__ == '__main__':
app.run(debug=True, port=int(os.environ.get('PORT', 5000)))
\ No newline at end of file
......@@ -8,4 +8,4 @@ sys.modules['flask'].Markup = Markup
logging.basicConfig(stream=sys.stderr)
if __name__ == '__main__':
application.run(host='0.0.0.0', port=8080)
application.run(host='0.0.0.0', port=int(os.environ.get('PORT', 8080)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment