aboutsummaryrefslogtreecommitdiff
path: root/excel2graph.service
diff options
context:
space:
mode:
Diffstat (limited to 'excel2graph.service')
-rw-r--r--excel2graph.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/excel2graph.service b/excel2graph.service
new file mode 100644
index 0000000..c3405cd
--- /dev/null
+++ b/excel2graph.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Gunicorn instance to serve application
+After=network.target
+
+[Service]
+User=graphexcel
+Group=graphexcel
+WorkingDirectory=/home/graphexcel/excel2graph
+Environment="/home/graphexcel/.cache/pypoetry/virtualenvs/excel2graph-NTDFhpxJ-py3.10/bin"
+ExecStart=/home/graphexcel/.cache/pypoetry/virtualenvs/excel2graph-NTDFhpxJ-py3.10/bin/gunicorn --workers 3 --bind 0.0.0.0:8080 app:app
+ExecReload=/bin/kill -s HUP $MAINPID
+KillMode=mixed
+TimeoutStopSec=5
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target