Changed development server to production
This commit is contained in:
@ -61,5 +61,7 @@ def create_app(config_name="default"):
|
||||
|
||||
# Server start only if we run app directly
|
||||
if __name__ == "__main__":
|
||||
from waitress import serve
|
||||
app = create_app()
|
||||
app.run(host="0.0.0.0")
|
||||
port = os.getenv("API_PORT", "80")
|
||||
serve(app, host="0.0.0.0", port=port)
|
||||
|
Reference in New Issue
Block a user