forked from kompetenzinventar/ki-backend
add production script
This commit is contained in:
10
run_prod.py
Normal file
10
run_prod.py
Normal file
@ -0,0 +1,10 @@
|
||||
from alembic import command
|
||||
from waitress import serve
|
||||
|
||||
from app import app, migrate
|
||||
|
||||
with app.app_context():
|
||||
config = migrate.get_config()
|
||||
command.upgrade(config, "head")
|
||||
|
||||
serve(app, host="0.0.0.0", port=5000)
|
Reference in New Issue
Block a user