aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh12
1 files changed, 12 insertions, 0 deletions
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!'
+