aboutsummaryrefslogtreecommitdiffstats
path: root/deployment
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-03-01 17:21:37 +0100
committerEddy Pedroni <epedroni@pm.me>2025-03-01 17:21:37 +0100
commit6986506571abf4d76ca899bca9ef7afe2b8c7b81 (patch)
treef47372cf8138a8e327ad0b4fa47de507ed186bd8 /deployment
parent8caa2cee3d512388b465bf8a0167fbe04afcd771 (diff)
Fix deployment
Diffstat (limited to 'deployment')
-rw-r--r--deployment/solo-tool.service14
-rwxr-xr-x[-rw-r--r--]deployment/start-solo-tool.sh10
2 files changed, 8 insertions, 16 deletions
diff --git a/deployment/solo-tool.service b/deployment/solo-tool.service
index 9e24f4b..e33a036 100644
--- a/deployment/solo-tool.service
+++ b/deployment/solo-tool.service
@@ -1,14 +1,12 @@
[Unit]
Description=Solo tool web frontend service
-After=network-online.target
+After=network-online.target sound.target
[Service]
-User=eddy
-Group=eddy
-Environment="SERVICE_DIR=/var/lib/solo-tool"
-Environment="SESSION_DIR=/var/lib/solo-tool/sessions"
-Environment="SONG_POOL=/var/lib/solo-tool/songs"
-ExecStart=/var/lib/solo-tool/start-solo-tool.sh
+WorkingDirectory=/home/eddy/git/solo-tool
+Environment="SESSION_DIR=/home/eddy/music/sessions"
+Environment="SONG_POOL=/home/eddy/music/songs"
+ExecStart=/home/eddy/git/solo-tool/deployment/start-solo-tool.sh
[Install]
-WantedBy=multi-user.target
+WantedBy=default.target
diff --git a/deployment/start-solo-tool.sh b/deployment/start-solo-tool.sh
index a293a61..d1d38f7 100644..100755
--- a/deployment/start-solo-tool.sh
+++ b/deployment/start-solo-tool.sh
@@ -1,15 +1,9 @@
#!/usr/bin/bash
-# Ensure that necessary directories exist
-mkdir -p "${SESSION_DIR}" "${SONG_POOL}"
-
-# Get latest revision
-cd "${SERVICE_DIR}"
-rm -rf repo
-git clone https://git.0xf7.com/solo-tool.git repo
+# Get latest version
+git pull
# Bootstrap venv
-cd repo
make
# Run web UI