mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(docker): perform migrations when starting the fastapi service
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
b5ff8581f3
commit
a6faf9bd2e
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ export FASTAPI_BACKEND="$1"
|
||||||
echo "FASTAPI_BACKEND: $FASTAPI_BACKEND"
|
echo "FASTAPI_BACKEND: $FASTAPI_BACKEND"
|
||||||
echo "FASTAPI_WORKERS: $FASTAPI_WORKERS"
|
echo "FASTAPI_WORKERS: $FASTAPI_WORKERS"
|
||||||
|
|
||||||
|
# Perform migrations.
|
||||||
|
alembic upgrade head
|
||||||
|
|
||||||
if [ "$1" == "uvicorn" ] || [ "$1" == "" ]; then
|
if [ "$1" == "uvicorn" ] || [ "$1" == "" ]; then
|
||||||
exec uvicorn --reload \
|
exec uvicorn --reload \
|
||||||
--ssl-certfile "$CERT" \
|
--ssl-certfile "$CERT" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue