diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index 1ec587ee0..ade69d13f 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -79,10 +79,12 @@ EOF cd /opt/adventurelog/backend/server mkdir -p /opt/adventurelog/backend/server/media $STD uv venv /opt/adventurelog/backend/server/.venv -$STD uv pip install -r requirements.txt -$STD uv run python manage.py collectstatic --noinput -$STD uv run python manage.py migrate -$STD uv run python manage.py download-countries +$STD /opt/adventurelog/backend/server/.venv/bin/python -m ensurepip --upgrade +$STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install --upgrade pip +$STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install -r requirements.txt +$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage.py collectstatic --noinput +$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage.py migrate +$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage.py download-countries cat </opt/adventurelog/frontend/.env PUBLIC_SERVER_URL=http://$LOCAL_IP:8000 BODY_SIZE_LIMIT=Infinity @@ -95,7 +97,7 @@ echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" msg_ok "Installed AdventureLog" msg_info "Setting up Django Admin" -$STD uv run python /opt/adventurelog/backend/server/manage.py shell <>~/tandoor.creds echo -e "Tandoor Database User: \e[32m$DB_USER\e[0m" >>~/tandoor.creds echo -e "Tandoor Database Password: \e[32m$DB_PASS\e[0m" >>~/tandoor.creds export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs) -$STD uv run python manage.py migrate -$STD uv run python manage.py collectstatic --no-input -$STD uv run python manage.py collectstatic_js_reverse +$STD /opt/tandoor/.venv/bin/python -m manage.py migrate +$STD /opt/tandoor/.venv/bin/python -m manage.py collectstatic --no-input +$STD /opt/tandoor/.venv/bin/python -m python manage.py collectstatic_js_reverse msg_ok "Set up PostgreSQL Database" msg_info "Creating Services"