diff --git a/ct/profilarr.sh b/ct/profilarr.sh index f35205f8d..8de51d8e1 100644 --- a/ct/profilarr.sh +++ b/ct/profilarr.sh @@ -47,9 +47,9 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "profilarr" "Dictionarry-Hub/profilarr" msg_info "Installing Python Dependencies" - cd /opt/profilarr - export UV_CONCURRENT_DOWNLOADS=1 - $STD uv sync --no-dev --frozen + cd /opt/profilarr/backend + $STD uv venv /opt/profilarr/backend/.venv + $STD uv pip install --python /opt/profilarr/backend/.venv/bin/python -r requirements.txt msg_ok "Installed Python Dependencies" msg_info "Building Frontend" @@ -87,4 +87,3 @@ msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6868${CL}" - diff --git a/install/profilarr-install.sh b/install/profilarr-install.sh index 17349f08b..ccc98162f 100644 --- a/install/profilarr-install.sh +++ b/install/profilarr-install.sh @@ -21,7 +21,7 @@ $STD apt install -y \ libssl-dev msg_ok "Installed Dependencies" -#UV_VERSION="0.7.19" +#UV_VERSION="0.7.19" PYTHON_VERSION="3.12" setup_uv NODE_VERSION="22" setup_nodejs @@ -33,20 +33,16 @@ msg_ok "Created directories" fetch_and_deploy_gh_release "profilarr" "Dictionarry-Hub/profilarr" msg_info "Installing Python Dependencies" -cd /opt/profilarr -export UV_CONCURRENT_DOWNLOADS=1 -$STD uv sync --no-dev --frozen +cd /opt/profilarr/backend +$STD uv venv /opt/profilarr/backend/.venv +$STD uv pip install --python /opt/profilarr/backend/.venv/bin/python -r requirements.txt msg_ok "Installed Python Dependencies" msg_info "Building Frontend" -if [[ -d /opt/profilarr/frontend ]]; then - cd /opt/profilarr/frontend - $STD npm install - $STD npm run build - msg_ok "Built Frontend" -else - msg_ok "No frontend directory found, skipping frontend build" -fi +cd /opt/profilarr/frontend +$STD npm install +$STD npm run build +msg_ok "Built Frontend" msg_info "Creating Service" cat </opt/profilarr.env @@ -63,10 +59,10 @@ After=network.target [Service] Type=simple User=root -WorkingDirectory=/opt/profilarr +WorkingDirectory=/opt/profilarr/backend EnvironmentFile=/opt/profilarr.env -Environment="PATH=/opt/profilarr/.venv/bin:/usr/local/bin:/usr/bin:/bin" -ExecStart=/opt/profilarr/.venv/bin/python -m profilarr +Environment="PATH=/opt/profilarr/backend/.venv/bin:/usr/local/bin:/usr/bin:/bin" +ExecStart=/opt/profilarr/backend/.venv/bin/python -m app.main Restart=on-failure RestartSec=5 @@ -79,4 +75,3 @@ msg_ok "Created Service" motd_ssh customize cleanup_lxc -