Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pushing To Heroku Fails - No Such App Fatal

Tags:

git

heroku

Git push onto heroku is pointing to a non-existing git repository.

git.heroku.com/secure-reef-1722.git this is the repository created when we ran heroku create command.

But when we run a 'push' command ($ git push heroku master), it says

remote: ! No such app as boiling-inlet-6957. fatal: repository 'https://git.heroku.com/boiling-inlet-6957.git/' not found

Also we are not able to see the new repository when we run $ git remote -v

heroku  https://git.heroku.com/boiling-inlet-6957.git (fetch)
heroku  https://git.heroku.com/boiling-inlet-6957.git (push)
origin  [email protected]:coderz$/toy_app.git (fetch)
origin  [email protected]:coderz$/toy_app.git (push)

Now we are unable to push files to the new heroku git repository (git.heroku.com/secure-reef-1722.git)

Kindly help us out. Thanks in advance.

Complete sequence of commands

coderz$:~/workspace/toy_app (master) $ heroku create
Creating secure-reef-1722... done, stack is cedar-14
https://secure-reef-1722.herokuapp.com/ | https://git.heroku.com/secure-reef-1722.git
coderz$:~/workspace/toy_app (master) $ git push heroku master
remote: !       No such app as boiling-inlet-6957.
fatal: repository 'https://git.heroku.com/boiling-inlet-6957.git/' not found
coderz$:~/workspace/toy_app (master) $ git remote -v
heroku  https://git.heroku.com/boiling-inlet-6957.git (fetch)
heroku  https://git.heroku.com/boiling-inlet-6957.git (push)
origin  [email protected]:coderz$/toy_app.git (fetch)
origin  [email protected]:coderz$/toy_app.git (push)
coderz$:~/workspace/toy_app (master) $ 
like image 282
Vikram Avatar asked Dec 20 '15 08:12

Vikram


People also ask

How do I force push to Heroku?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.

Can you push to Heroku and GitHub?

You can now push your project to GitHub and it will be automatically deployed to Heroku henceforth.

Can you pull from Heroku?

Also note that Heroku should not be considered a git hosting. It means that it's extremely uncommon to perform a git pull from Heroku. Instead, you should use a git hosting (such as GitHub or BitBucket) to store your repository and only perform push to Heroku to deploy the application.


1 Answers

Try to re-add the remote url.

// Check for the current url 
git remote -v

// remove remote url
git remote rm heroku

// re-add the remote url
git remote add heroku [email protected]:boiling-inlet-6957.git

enter image description here

like image 198
CodeWizard Avatar answered Sep 18 '22 14:09

CodeWizard