aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornext2w2022-10-04 16:15:27 -0400
committernext2w2022-10-04 16:15:27 -0400
commitabd39afecf0758749ba34ffb4007ccbef100cc96 (patch)
tree1e9e110ac25eb5cd8342811f6d502e981781d382
parent3f75a08e5e5c1e4b24d8eb7e03653cbe5d26a4e2 (diff)
Add systemd user services
-rw-r--r--piano-backend.service6
-rw-r--r--piano-frontend.service6
2 files changed, 12 insertions, 0 deletions
diff --git a/piano-backend.service b/piano-backend.service
new file mode 100644
index 0000000..ddc274c
--- /dev/null
+++ b/piano-backend.service
@@ -0,0 +1,6 @@
+[Service]
+ExecStart=python app.py
+WorkingDirectory=%h/piano-appp/backend
+
+[Install]
+WantedBy=default.target
diff --git a/piano-frontend.service b/piano-frontend.service
new file mode 100644
index 0000000..8e356b2
--- /dev/null
+++ b/piano-frontend.service
@@ -0,0 +1,6 @@
+[Service]
+ExecStart=npm run start
+WorkingDirectory=%h/piano-appp
+
+[Install]
+WantedBy=default.target