Commit 363758d 1 parent 9073350 commit 363758d Copy full SHA for 363758d
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ export NVM_DIR=" $HOME /.nvm"
3
+ [ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh" # This loads nvm
4
+ [ -s " $NVM_DIR /bash_completion" ] && \. " $NVM_DIR /bash_completion" # This loads nvm bash_completion
2
5
REPOSITORY=/home/ubuntu/build-dev
3
6
APP_NAME=node_app_dev
4
7
cd $REPOSITORY
5
- export PATH=$PATH :$( npm root -g)
6
8
7
9
# Check if the app is already running
8
10
if pm2 list | grep $APP_NAME > /dev/null
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ export NVM_DIR=" $HOME /.nvm"
3
+ [ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh" # This loads nvm
4
+ [ -s " $NVM_DIR /bash_completion" ] && \. " $NVM_DIR /bash_completion" # This loads nvm bash_completion
2
5
REPOSITORY=/home/ubuntu/build
3
6
APP_NAME=node_app_prod
4
7
cd $REPOSITORY
5
- export PATH=$PATH :$( npm root -g)
6
8
7
9
# Check if the app is already running
8
10
if pm2 list | grep $APP_NAME > /dev/null
You can’t perform that action at this time.
0 commit comments