setup.sh 352 B

123456789101112131415161718
  1. export NVM_HOME=${IROOT}/nvm
  2. # Used to avoid nvm's return 2 error.
  3. # Sourcing this functions if 0 is returned.
  4. source $NVM_HOME/nvm.sh || 0
  5. nvm install 0.12.2
  6. nvm use 0.12.2
  7. # update npm before app init
  8. npm install -g npm
  9. # let us run sails directly
  10. npm install -g sails
  11. # reset cache & run app
  12. npm cache clean
  13. npm install
  14. sails lift --port 8080 &