setup.sh 312 B

1234567891011121314
  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. # run app
  10. npm install
  11. node --harmony app &