title: Laravel 4: Running composer when deploying to Heroku
body: <p>I've been searching everywhere for an answer to this.</p>
  
  <p>I built an app in Laravel - I chose Heroku for deployment, I included a custom Procfile and httpd.conf to rewrite the document root to public. That all works great.</p>
  
  <p>However my app shows an internal 500 error upon loading because it hasn't loaded any dependencies i.e. not run composer upon deployment.</p>
  
  <p><strong>My question is: how do I make composer run upon deployment?</strong></p>
  
  <p>p.s. I'm a total noob with this kind of stuff so please provide as much detail as possible.</p>
  
  <p>The only possible solution I've seen is here: <a href="http://bergie.iki.fi/blog/using_composer_to_manage_dependencies_in_heroku_php_apps/" rel="nofollow">http://bergie.iki.fi/blog/using_composer_to_manage_dependencies_in_heroku_php_apps/</a></p>
  
  <p>But I'm convinced there is better way than this. </p>