aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-10-11 06:06:53 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-10-11 06:06:53 +0300
commiteffbaa0921a5a3b1c35b7e4d5943bb4ff6f9d045 (patch)
tree876093b334f68cdab5b4aefad6aec00dc4705b6f
parent7fa67433448cf66832f58137915dd5c493adbfb2 (diff)
downloadarching-kaos-radio-effbaa0921a5a3b1c35b7e4d5943bb4ff6f9d045.tar.gz
arching-kaos-radio-effbaa0921a5a3b1c35b7e4d5943bb4ff6f9d045.tar.bz2
arching-kaos-radio-effbaa0921a5a3b1c35b7e4d5943bb4ff6f9d045.zip
Deploy script (for radio.arching-kaos.com)
-rw-r--r--README2
-rwxr-xr-xdeploy.sh12
2 files changed, 14 insertions, 0 deletions
diff --git a/README b/README
index 0c4fd29..da9dc26 100644
--- a/README
+++ b/README
@@ -18,3 +18,5 @@ Helping scripts:
- ./create_metadata_show.sh
- ./create_static_list.sh
+Deploy scripts:
+- ./deploy.sh
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..fb3b4d0
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+echo 'Deploying...'
+if [ -f "${HOME}/rse_server.pid" ]
+then
+ pkill $(cat ${HOME}/rse_server.pid)
+fi
+sed -e -i.bak 's/http:\/\/z.kaotisk\-hund.com:8610/https:\/\/api.radio.arching\-kaos.com/g' client/js/radio_emulator.js create_static_list.sh
+cd server
+node index.js >> ${HOME}/rse_server.log 2>&1 &
+echo $! > ${HOME}/rse_server.pid
+echo 'Deployed!'
+