Skip to content

Commit

Permalink
Update deploy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
anze3db committed Nov 10, 2024
1 parent 2d3e3ba commit 9bbeadb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .deploy/run.sh

This file was deleted.

5 changes: 4 additions & 1 deletion .deploy/surfcams.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ After=nginx.service
Type=simple
Restart=always
RestartSec=1
ExecStart=/bin/bash /home/anze/projects/surfcams/.deploy/run.sh
WorkingDirectory=/var/apps/surfcams
ExecStart=/var/apps/surfcams/.venv/bin/surfcamsapi.asgi:application
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MANPID
User=anze

[Install]
Expand Down
2 changes: 1 addition & 1 deletion .deploy/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ git pull
uv sync --locked
uv run python manage.py collectstatic --noinput
uv run python manage.py migrate
ps axf | grep 'gunicorn: master \[surfcams\]' | awk '{print "sudo kill -hup " $1}' | sh
sudo systemctl reload surfcams
echo `date "+%Y-%m-%d %H:%M:%S.%3N"` ' Updated' >> update.log
popd

0 comments on commit 9bbeadb

Please sign in to comment.