diff --git a/.deploy/update.sh b/.deploy/update.sh index 634b934..29cdc59 100644 --- a/.deploy/update.sh +++ b/.deploy/update.sh @@ -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 diff --git a/.gitignore b/.gitignore index bb7e15e..9b7b6b9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,4 @@ surfcams.db staticroot surfcamsapi.sqlite -gunicorn.pid update.log diff --git a/gunicorn.conf.py b/gunicorn.conf.py index b1bb3d5..9590cdf 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -3,4 +3,4 @@ threads = 4 proc_name = "surfcams" worker_class = "uvicorn.workers.UvicornWorker" -pidfile = "gunicorn.pid" +pidfile = "/var/run/gunicorn-surfcams.pid"