Skip to content

Commit

Permalink
Update autoscaleapi.service
Browse files Browse the repository at this point in the history
- fixed $PATH for pct issue
- you can force to listen on localhost only (more secure) by replacing 0.0.0.0 with 127.0.0.1
  • Loading branch information
fabriziosalmi authored Aug 17, 2024
1 parent 29ee2a5 commit 79e05a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/autoscaleapi.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ After=network.target
[Service]
User=root
Group=root
Environment="PATH=/usr/local/bin:/usr/bin:/bin"
WorkingDirectory=/usr/local/bin/autoscaleapi
ExecStart=/usr/local/bin/gunicorn --workers 2 --bind 0.0.0.0:5000 app:app
Environment="PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin"
WorkingDirectory=/usr/local/bin/autoscaleapi/
ExecStart=/usr/local/bin/gunicorn --workers 3 --bind 0.0.0.0:5000 app:app

# Restart on failure
Restart=on-failure
Expand Down

0 comments on commit 79e05a0

Please sign in to comment.