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