run 352 B

123456789101112
  1. #!/bin/bash
  2. NODE_PARAMS=""
  3. if [ "$DEBUG_NODE" == "true" ]; then
  4. echo "running debug - notifications"
  5. NODE_PARAMS="--inspect=0.0.0.0:30420"
  6. fi
  7. source /etc/overleaf/env.sh
  8. export LISTEN_ADDRESS=127.0.0.1
  9. exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/notifications/app.ts >> /var/log/overleaf/notifications.log 2>&1