- ensure to delete contents of migrations/versions folder prior to flask
operations
- use `--frozen` for uv operations rather than locking
This commit is contained in:
Chris
2025-09-10 10:21:52 -04:00
committed by GitHub
parent b733e8b5ea
commit 7b8fcab242
2 changed files with 11 additions and 9 deletions

View File

@@ -23,13 +23,12 @@ fetch_and_deploy_gh_release "wizarr" "wizarrrr/wizarr"
msg_info "Configure ${APPLICATION}"
cd /opt/wizarr
$STD /usr/local/bin/uv lock
$STD /usr/local/bin/uv sync --locked
$STD /usr/local/bin/uv run pybabel compile -d app/translations
$STD /usr/local/bin/uv sync --frozen
$STD /usr/local/bin/uv run --frozen pybabel compile -d app/translations
$STD npm --prefix app/static install
$STD npm --prefix app/static run build:css
mkdir -p ./.cache
$STD /usr/local/bin/uv run flask db upgrade
$STD /usr/local/bin/uv run --frozen flask db upgrade
msg_ok "Configure ${APPLICATION}"
msg_info "Creating env, start script and service"
@@ -43,7 +42,7 @@ EOF
cat <<EOF >/opt/wizarr/start.sh
#!/usr/bin/env bash
uv run gunicorn \
uv run --frozen gunicorn \
--config gunicorn.conf.py \
--preload \
--workers 4 \