run 366 B

12345678910111213
  1. #!/bin/bash
  2. NODE_PARAMS=""
  3. if [ "$DEBUG_NODE" == "true" ]; then
  4. echo "running debug - web-api"
  5. NODE_PARAMS="--inspect=0.0.0.0:30000"
  6. fi
  7. export LISTEN_ADDRESS=0.0.0.0
  8. export ENABLED_SERVICES="api"
  9. export METRICS_APP_NAME="web-api"
  10. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/web/app.js >> /var/log/sharelatex/web-api.log 2>&1