Fix database errors
All checks were successful
release-tag / release-image (push) Successful in 6m17s
All checks were successful
release-tag / release-image (push) Successful in 6m17s
This commit is contained in:
@@ -47,7 +47,6 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
||||
push: true
|
||||
tags: | # replace it with your local IP and tags
|
||||
git.matsewe.de/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
||||
|
||||
@@ -19,13 +19,14 @@ from starlette.middleware import Middleware
|
||||
from starlette_context import context, plugins
|
||||
from starlette_context.middleware import RawContextMiddleware
|
||||
|
||||
Base.metadata.create_all(engine)
|
||||
|
||||
if os.path.isfile("/tmp/first_run") and (os.environ.get("RELOAD_ON_FIRST_RUN", "").lower() == "true"):
|
||||
print("First run ... load data")
|
||||
with SessionLocal() as db:
|
||||
asyncio.run(admin.create_upload_file(include_non_singable=True, db=db))
|
||||
os.remove("/tmp/first_run")
|
||||
|
||||
# Base.metadata.create_all(engine)
|
||||
|
||||
middleware = [
|
||||
Middleware(
|
||||
|
||||
Reference in New Issue
Block a user