diff options
Diffstat (limited to 'gunicorn1.service')
| -rw-r--r-- | gunicorn1.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gunicorn1.service b/gunicorn1.service new file mode 100644 index 0000000..425c453 --- /dev/null +++ b/gunicorn1.service | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | |||
| 2 | [Unit] | ||
| 3 | Description=gunicorn1 | ||
| 4 | After=network.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | User=www-data | ||
| 8 | Group=www-data | ||
| 9 | WorkingDirectory=/var/www | ||
| 10 | ExecStart=/usr/local/bin/gunicorn --workers 3 --bind 0.0.0.0:5000 app1:app | ||
| 11 | |||
| 12 | [Install] | ||
| 13 | WantedBy=multi-user.target | ||
| 14 | |||
