When I try to push my app to Heroku I get this response:
fatal: \'heroku\' does not appear to be a git repository
fatal: Could not read from remote repositor
My problem was that I used git (instead of heroku git) to clone the app. Then I had to:
git remote add heroku git@heroku.com:MyApp.git
Remember to change MyApp to your app name.
Then I could proceed:
git push heroku master
Run this
heroku create
before pushing your code.
For those who are trying to get heroku to work on codeanywhere
IDE:
heroku login
git remote add heroku git@heroku.com:MyApp.git
git push heroku
To add a Heroku app as a Git remote, you need to execute heroku git:remote -a yourapp
.
Source: Deploying with Git
You forgot to link your app name to your heroku. It's a very common mistake. if your app is not created, then use:
heroku create (optional app name)
else:
git add .
git commit -m "heroku commit"
heroku git:remote -a YOUR_APP_NAME
git push heroku master
The following commands will work well for ruby on rails application deployment on heroku if heroku is already installed on developers machine. # indicates a comment