Skip to content

Commit

Permalink
Move pid to /var/run
Browse files Browse the repository at this point in the history
  • Loading branch information
anze3db committed Nov 8, 2024
1 parent 43b4b1d commit 6268db8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
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
sudo kill -hup `cat gunicorn.pid`
sudo kill -hup `cat /var/run/gunicorn-surfcams.pid`
echo `date "+%Y-%m-%d %H:%M:%S.%3N"` ' Updated' >> update.log
popd
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ surfcams.db
staticroot
surfcamsapi.sqlite

gunicorn.pid
update.log
2 changes: 1 addition & 1 deletion gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
threads = 4
proc_name = "surfcams"
worker_class = "uvicorn.workers.UvicornWorker"
pidfile = "gunicorn.pid"
pidfile = "/var/run/gunicorn-surfcams.pid"

0 comments on commit 6268db8

Please sign in to comment.