rozbicie na moduły, poprawki i komendy cli
This commit is contained in:
1 parent
c5295fa49c
commit
bbfb3e0887
48 files changed
+2125
-1676
No files matched your search
+5
-6
@@ -1,11 +1,10 @@
|
||||
import os
|
||||
from app import app, db, create_admin_account
|
||||
|
||||
from waitress import serve
|
||||
|
||||
from app import app, init_database_with_retry
|
||||
|
||||
if __name__ == '__main__':
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
create_admin_account()
|
||||
|
||||
init_database_with_retry(app, raise_on_failure=False)
|
||||
port = int(os.environ.get("APP_PORT", 8080))
|
||||
serve(app, host="0.0.0.0", port=port)
|
||||
serve(app, host="0.0.0.0", port=port)
|
||||
Reference in new issue
Block a user