× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS
Jessamyn Smith
May 08, 2015
<p>Heroku is a service that makes it relatively easy to deploy a web app. However, there are a few common issues people encounter when trying to push an app to Heroku for the first time.</p> <table border="1" cellpadding="1" cellspacing="1" style="width:500px"> <tbody> <tr> <td>Issue</td> <td>Reason</td> <td>Solution</td> </tr> <tr> <td>Permission denied on git push heroku</td> <td>Not logged in</td> <td>You must do heroku login on the command line before you push to heroku.</td> </tr> <tr> <td>Push failed</td> <td>Invalid heroku remote</td> <td>Check your .git/config file; you should have something like: <p>[remote "heroku"]<br>     url = https://git.heroku.com/mybikelane-staging.git<br>     fetch = +refs/heads/*:refs/remotes/heroku/*</p> </td> </tr> <tr> <td>App type not detected</td> <td>Missing or invalid Procfile</td> <td>If using Python, you MUST have a Procfile that references your app (probably wsgi), and it MUST be in the very root of your git repo. Heroku will not discover the file unless it is in the project root. The command in the Procfile (after "web:") should be runnable locally.</td> </tr> <tr> <td>App Crashed</td> <td>Invalid Procfile, missing requirements</td> <td>If your app runs locally but not on Heroku, one possibility that the Procfile is invalid. Verify that you can run the command in the Procfile (after "web:") locally. Another possibility is that you have not let Heroku know about the project requirements. For Python, you need a requirements.txt file that contains all the packages your app requires. For Ruby you need a Gemfile and for Node you need a package.json file.</td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table>
comments powered by Disqus