Skip to content

Commit

Permalink
Revert Gunicorn socket path
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe-Heffer-Shef committed Jan 8, 2025
1 parent 4398da4 commit 6251386
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/nginx/gunicorn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ upstream app_server {
# fail_timeout=0 means we always retry an upstream even if it failed
# to return a good HTTP response
# for UNIX domain socket setups
server unix:/run/gunicorn/gunicorn.sock fail_timeout=0;
server unix:/run/gunicorn.sock fail_timeout=0;
}

server {
Expand Down
2 changes: 1 addition & 1 deletion config/systemd/gunicorn.socket
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description=gunicorn socket

[Socket]
ListenStream=/run/gunicorn/gunicorn.sock
ListenStream=/run/gunicorn.sock
# Our service won't need permissions for the socket, since it
# inherits the file descriptor by socket activation.
# Only the nginx daemon will need access to the socket:
Expand Down
3 changes: 2 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ apt install --yes -qq nginx
# Configure web server
rm -f /etc/nginx/sites-enabled/default
cp config/nginx/*.conf /etc/nginx/sites-available
ln -s /etc/nginx/sites-available/gunicorn.conf /etc/nginx/sites-enabled/gunicorn.conf
# Enable the site by creating a symbolic link
ln --symbolic --force /etc/nginx/sites-available/gunicorn.conf /etc/nginx/sites-enabled/gunicorn.conf
systemctl reload nginx.service

0 comments on commit 6251386

Please sign in to comment.