Suraj
Suraj

Reputation: 2553

not able to push rails app to heroku

I am trying to push a code which I pulled from bitbucket.

I get the below error when I do git push heroku master.

fatal: 'heroku' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I have the access to repo. What's wrong.

Upvotes: 0

Views: 2769

Answers (2)

Kyle H
Kyle H

Reputation: 3295

For those looking in 2017 and beyond, simply doing heroku create solves the issue, then you can do the git push heroku master command.

https://devcenter.heroku.com/articles/getting-started-with-rails5

Upvotes: 0

Jefferson
Jefferson

Reputation: 1559

Have you executed heroku git:remote -a yourapp?

Reference: https://devcenter.heroku.com/articles/git

Upvotes: 6

Related Questions