24 lines · 713 B · Shell
RawDownload
#!/bin/bash -e if [ "$UID" -eq 0 ]; then  set +e # disable failing on errror  ulimit -n 65535  echo "NEW ULIMIT: $(ulimit -n)"  set -e # enable failing on errorelse  echo ENTRYPOINT DID NOT RUN AS ROOTfi if [ "$FLY_PROCESS_GROUP" = "app" ]; then  echo "RUNNING app"  node --max-old-space-size=8192 dist/src/index.jselif [ "$FLY_PROCESS_GROUP" = "worker" ]; then  echo "RUNNING worker"  node --max-old-space-size=8192 dist/src/services/queue-worker.jselif [ "$FLY_PROCESS_GROUP" = "index-worker" ]; then  echo "RUNNING index worker"  node --max-old-space-size=8192 dist/src/services/indexing/index-worker.jselse  echo "NO FLY PROCESS GROUP"  node --max-old-space-size=8192 dist/src/index.jsfi