I have an app with a Procfile set to run a shell script, but Heroku will not run the script, stating "Permission denied".
Procfile:web: ./start.sh
start.sh:
#!/usr/bin/env bash
clear;
until node app.js; do
echo "Server crashed with exit code $?. Respawning.." >&2
sleep 1
done
Heroku log:
Starting process with command './start.sh'
bash: ./start.sh: Permission denied
State changed from starting to crashed
Process exited with status 126