run 449 B

12345678910111213141516171819
  1. #!/usr/bin/with-contenv bash
  2. mkdir -p /data/letsencrypt-acme-challenge
  3. cd /app || echo
  4. if [ "$DEVELOPMENT" == "true" ]; then
  5. cd /app || exit 1
  6. # If yarn install fails: add --verbose --network-concurrency 1
  7. yarn install
  8. node --max_old_space_size=250 --abort_on_uncaught_exception node_modules/nodemon/bin/nodemon.js
  9. else
  10. cd /app || exit 1
  11. while :
  12. do
  13. node --abort_on_uncaught_exception --max_old_space_size=250 index.js
  14. sleep 1
  15. done
  16. fi