aboutsummaryrefslogtreecommitdiff
path: root/server/example.service
diff options
context:
space:
mode:
Diffstat (limited to 'server/example.service')
-rw-r--r--server/example.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/example.service b/server/example.service
new file mode 100644
index 0000000..f562047
--- /dev/null
+++ b/server/example.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Uvicorn instance to serve application
+After=network.target
+
+[Service]
+User=graphexcel
+Group=graphexcel
+WorkingDirectory=/home/graphexcel/virtual-energy-trading/server
+Environment="/home/graphexcel/virtual-energy-trading/server/.venv/bin"
+ExecStart=/home/graphexcel/virtual-energy-trading/server/.venv/bin/uvicorn --workers 2 --host 0.0.0.0 --port 8534 main:app
+ExecReload=/bin/kill -s HUP $MAINPID
+KillMode=mixed
+TimeoutStopSec=5
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target