setup.sh 397 B

123456789101112131415
  1. #!/bin/bash
  2. fw_depends nodejs
  3. sed -i 's|127.0.0.1|'"${DBHOST}"'|g' api/controllers/RedisController.js
  4. sed -i 's|127.0.0.1|'"${DBHOST}"'|g' api/controllers/SequelizeMySQLController.js
  5. sed -i 's|127.0.0.1|'"${DBHOST}"'|g' api/controllers/SequelizePostgresController.js
  6. # let us run sails directly
  7. npm install -g sails
  8. # reset cache & run app
  9. npm cache clean
  10. npm install
  11. sails lift --port 8080 &