fix db stuff

This commit is contained in:
Philipp Rothmann 2022-11-22 13:22:09 +01:00
parent 4915532e14
commit fa37029e96
4 changed files with 9 additions and 3 deletions

4
backend/.dockerignore Normal file
View file

@ -0,0 +1,4 @@
.env
.vscode
.venv
__pycache__

View file

@ -6,5 +6,5 @@ TOKEN_URL="https://sso.example.org/application/o/token/"
REDIRECT_URL="https://example.org/login-callback" REDIRECT_URL="https://example.org/login-callback"
SECRET_KEY= SECRET_KEY=
LOAD_INCLUSTER_CONFIG=false LOAD_INCLUSTER_CONFIG=false
DATABASE_URL=sqlite:///database.db DATABASE_URL=sqlite:///db/database.db
AUTHENTIK_BASEURL="https://sso.example.org/api/v3" AUTHENTIK_BASEURL="https://sso.example.org/api/v3"

1
backend/.gitignore vendored
View file

@ -8,4 +8,5 @@ __pycache__
.envrc .envrc
.direnv .direnv
run_app.local.sh run_app.local.sh
db/
*.db *.db

View file

@ -2,5 +2,6 @@
set -eu set -eu
env env
mkdir -p db
flask db upgrade flask db upgrade
gunicorn app:app -b 0.0.0.0:5000 --workers "$(nproc)" --reload --capture-output --enable-stdio-inheritance --log-level DEBUG gunicorn app:app -b 0.0.0.0:5000 --workers "$(nproc)" --reload --capture-output --enable-stdio-inheritance --log-level DEBUG