diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b123593..6066ce7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,6 +41,5 @@ jobs: git pull npm install npx tailwindcss --minify -i app/templates/template.css -o app/static/style.css - echo "Running uv as $USER on $SHELL" > ci.txt - /usr/bin/bash -c 'uv sync' + /home/bettercal/.local/bin/uv run systemctl --user restart bettercal.service diff --git a/bettercal.service b/bettercal.service index af3feb9..7375724 100644 --- a/bettercal.service +++ b/bettercal.service @@ -4,7 +4,7 @@ After=network.target [Service] WorkingDirectory=/home/bettercal/better-tiss-calendar/ -ExecStart=/bin/bash -c 'uv run -- gunicorn -w 5 --bind localhost:5003 app:app' +ExecStart=/home/bettercal/.local/bin/uv run -- gunicorn -w 5 --bind localhost:5003 app:app Restart=always [Install]