setup.sh 363 B

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