1234567891011121314151617 |
- #!/bin/bash
- sed -i 's|mongodb://.*/hello_world|mongodb://'"${DBHOST}"'/hello_world|g' app.js
- export NVM_HOME=${IROOT}/nvm
- # Used to avoid nvm's return 2 error.
- # Sourcing this functions if 0 is returned.
- source $NVM_HOME/nvm.sh || 0
- nvm install 0.11.16
- nvm use 0.11.16
- # update npm before app init
- npm install -g npm
- # run app
- npm install
- node --harmony app &
|