start.sh 279 B

123456789101112
  1. #!/bin/bash
  2. sed -i "s/localhost/$HOST/" /sendd/public/javascripts/index.js
  3. sed -i "s/9000/$PEERJSPORT/" /sendd/public/javascripts/index.js
  4. sed -i "s/9000/$PEERJSPORT/" /sendd/routes/index.js
  5. cd /sendd
  6. ln -s /usr/bin/nodejs /usr/bin/node
  7. npm install
  8. PORT=$HTTPPORT npm start