reikernx commited on
Commit
90c1aa4
·
verified ·
1 Parent(s): 49f6015

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +19 -0
start.sh ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ REPO_DIR="/app/axstream"
5
+ REPO_URL="https://github.com/reaperofssa/axstream.git"
6
+
7
+ if [ -d "$REPO_DIR/.git" ]; then
8
+ echo "Repo exists, pulling latest changes..."
9
+ cd "$REPO_DIR"
10
+ git reset --hard
11
+ git pull
12
+ else
13
+ echo "Cloning public repo..."
14
+ git clone "$REPO_URL" "$REPO_DIR"
15
+ cd "$REPO_DIR"
16
+ fi
17
+
18
+ echo "Starting server..."
19
+ node server.js