Skip to content

Commit

Permalink
Update deployment settings
Browse files Browse the repository at this point in the history
  • Loading branch information
anze3db committed Nov 10, 2024
1 parent c90f29f commit 6bc8de7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .deploy/fedidevs.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ After=redis.service
Type=simple
Restart=always
RestartSec=1
ExecStart=/bin/bash /home/anze/projects/fedidevs/.deploy/run.sh
WorkingDirectory=/var/apps/fedidevs
ExecStart=/var/apps/fedidevs/.venv/bin/gunicorn fedidevs.wsgi
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MANPID
User=anze

[Install]
Expand Down
5 changes: 0 additions & 5 deletions .deploy/run.sh

This file was deleted.

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

0 comments on commit 6bc8de7

Please sign in to comment.