Update wger install and update scripts for pip usage

Replaces 'uv sync --no-dev' and editable pip install with 'uv venv' and standard pip install in both wger.sh and wger-install.sh. This streamlines the installation and update process for wger.
This commit is contained in:
CanbiZ (MickLesk) 2026-01-22 15:49:39 +01:00
parent 3d4a95cbd7
commit 249113c2b9
2 changed files with 3 additions and 4 deletions

View File

@ -51,8 +51,7 @@ function update_script() {
msg_info "Updating wger" msg_info "Updating wger"
cd /opt/wger cd /opt/wger
$STD uv sync --no-dev $STD uv pip install .
$STD uv pip install -e .
export DJANGO_SETTINGS_MODULE=settings.main export DJANGO_SETTINGS_MODULE=settings.main
export PYTHONPATH=/opt/wger export PYTHONPATH=/opt/wger
$STD uv run python manage.py migrate $STD uv run python manage.py migrate

View File

@ -31,8 +31,8 @@ chown :www-data -R /opt/wger/db
chmod g+w /opt/wger/db /opt/wger/db/database.sqlite chmod g+w /opt/wger/db /opt/wger/db/database.sqlite
chmod o+w /opt/wger/media chmod o+w /opt/wger/media
cd /opt/wger cd /opt/wger
$STD uv sync --no-dev $STD uv venv
$STD uv pip install -e . $STD uv pip install .
mkdir -p /opt/wger/settings mkdir -p /opt/wger/settings
cat <<EOF >/opt/wger/settings/main.py cat <<EOF >/opt/wger/settings/main.py
from wger.settings_global import * from wger.settings_global import *