Added configuration options for the Flask server.

master
Pacman Ghost 6 years ago
parent 447716068f
commit 26d376a2ab
  1. 4
      vasl_templates/webapp/run_server.py

@ -20,8 +20,8 @@ for fspec in ["config","static","templates"] :
# run the server
from vasl_templates.webapp import app
app.run(
host = "localhost",
host = app.config.get( "FLASK_HOST", "localhost" ),
port = app.config["FLASK_PORT_NO"],
debug = True,
debug = app.config.get( "FLASK_DEBUG", False ),
extra_files = extra_files
)

Loading…
Cancel
Save