setup.sh 380 B

1234567891011121314151617
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' app.js
  3. fw_depends nodejs
  4. npm install
  5. node app &
  6. # !DO NOT REMOVE!
  7. #
  8. # It takes `node app` a few seconds to turn on and
  9. # then fork. If you remove this sleep, the parent shell
  10. # executing this script will be terminated before the
  11. # application has time to awaken and be forked, and
  12. # express will fail to be started
  13. sleep 5