setup.sh 214 B

1234567891011
  1. #!/bin/bash
  2. fw_depends nodejs
  3. sed -i 's|mongodb://.*/hello_world|mongodb://'"${DBHOST}"'/hello_world|g' app.js
  4. sed -i 's|localhost|'"${DBHOST}"'|g' app.js
  5. # install dependencies
  6. npm install
  7. # run app
  8. node app &