diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-10 15:18:16 -0700 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-10 15:18:16 -0700 |
commit | d640dfbba33f68c9ca1dc9e767017eeb810e2736 (patch) | |
tree | 0c9cc822258cae6fee60c55475165b17c9e2d3e3 | |
parent | 9e3518c7d7c6fa1facf5579406b048aafd4e6aca (diff) |
added simple example systemd file and updated readme
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | excel2graph.service | 17 |
2 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..7da5016 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Excel2Graph + +Dead simple web-service to paste data from an excel sheet and generate beautiful graphs. 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 |