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

added some stuff to wsgi.py file

parent 9998b777
No related branches found
No related tags found
1 merge request!5Master
......@@ -91,3 +91,6 @@ def download_assessment(filename):
print(f"Error serving assessment file: {str(e)}")
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
import sys
import logging
from app import app as application
logging.basicConfig(stream=sys.stderr)
from app import app as application
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.
Please register or to comment