hf4all commited on
Commit
04fdd70
·
1 Parent(s): a9ef9b5

Update start_server.sh

Browse files
Files changed (1) hide show
  1. start_server.sh +9 -2
start_server.sh CHANGED
@@ -37,7 +37,15 @@ if [[ ! -z "$REPOS" ]]; then
37
  fi
38
  cd ..
39
  done
 
 
 
 
 
 
 
40
  fi
 
41
  [[ -z $(git config --global user.name) ]] && git config --global user.name "$SPACE_AUTHOR_NAME"
42
  [[ -z $(git config --global user.email) ]] && git config --global user.email "$SPACE_AUTHOR_NAME@hf.co"
43
 
@@ -52,6 +60,5 @@ $vscode --install-extension ms-python.python
52
  ln -s $vscode_cli $(dirname $vscode_cli)/code
53
  tslab install --prefix /home/user/miniconda/
54
  set -e
55
- pm2 start ./auto-commit.js
56
  nginx -c $PWD/nginx.conf
57
- exec $vscode --host 0.0.0.0 --port 5050 --without-connection-token \"${@}\" --
 
37
  fi
38
  cd ..
39
  done
40
+
41
+
42
+ pm2 start ./auto-commit.js
43
+
44
+ if [[ -e ecosystem.config.js ]]; then
45
+ echo pm2 start all
46
+ pm2 start ecosystem.config.js
47
  fi
48
+
49
  [[ -z $(git config --global user.name) ]] && git config --global user.name "$SPACE_AUTHOR_NAME"
50
  [[ -z $(git config --global user.email) ]] && git config --global user.email "$SPACE_AUTHOR_NAME@hf.co"
51
 
 
60
  ln -s $vscode_cli $(dirname $vscode_cli)/code
61
  tslab install --prefix /home/user/miniconda/
62
  set -e
 
63
  nginx -c $PWD/nginx.conf
64
+ exec $vscode --host 0.0.0.0 --port 5050 --without-connection-token \"${@}\" --