purrbits commited on
Commit
3ef1cc7
·
verified ·
1 Parent(s): 9a9759f

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +8 -2
start.sh CHANGED
@@ -1,11 +1,17 @@
1
  #!/bin/bash
2
  set -e
3
 
4
- if [ -d ".git" ]; then
 
 
5
  git pull origin main
6
  else
7
- git clone https://github.com/synshin9/Restfull-Api.git .
 
8
  fi
9
 
 
10
  npm install
 
 
11
  npm start
 
1
  #!/bin/bash
2
  set -e
3
 
4
+ # Kalau repo sudah ada, pull update
5
+ if [ -d "./Restfull-Api/.git" ]; then
6
+ cd Restfull-Api
7
  git pull origin main
8
  else
9
+ git clone https://github.com/synshin9/Restfull-Api.git
10
+ cd Restfull-Api
11
  fi
12
 
13
+ # Install dependencies
14
  npm install
15
+
16
+ # Jalankan aplikasi
17
  npm start