Skip to content
Snippets Groups Projects
Commit 9fbdc399 authored by Dave Whiteland's avatar Dave Whiteland
Browse files

add BUGGY_EDITOR_PORT for clearer control over port number

parent 0a9709b0
Branches main
No related tags found
No related merge requests found
from flask import Flask, jsonify, render_template, request, send_file
import os
import sqlite3 as sql
# the flask application: uses the webserver imported from the flask module:
......@@ -99,4 +100,6 @@ def send_favicon():
# with control-C), it will run forever... so any code you put _after_ app.run
# here won't normally be run.
if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=5000)
allocated_port = os.environ.get('BUGGY_EDITOR_PORT') or 5000
app.run(debug=True, host="0.0.0.0", port=allocated_port)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment