Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting started (not) with Heroku: App not found

This should be simple, and I swear it was working an hour ago. I can log in to Heroku, but can't run any useful commands:

$ heroku login Enter your Heroku credentials. Email: [email protected] Password:  $ heroku stack App not found $ heroku config App not found 

Perhaps this is the source of the problem?

$ git remote show heroku !  No such app as empty-samurai-345 fatal: The remote end hung up unexpectedly 

empty-samuri-345 was an app I deleted earlier. All I really want to do is upload a new app using the bamboo-mri-1.9.2 stack.

Thanks in advance for suggestions...

like image 733
fearless_fool Avatar asked Mar 14 '11 23:03

fearless_fool


People also ask

Why my Heroku app is not working?

There are some errors which only occur when the app is rebooting so you will need to restart the app to see these log messages appear. For most apps, we also recommend enabling one of the free logging addons from https://elements.heroku.com/addons#logging to make sure that your historical log data is being saved.

How do I know if Heroku app is working?

How to check your app. To run Production Check, navigate to your app in the Heroku Dashboard, click the actions menu in the top-right corner, and then click Production check . Production Check will run a series of tests on your app. These tests are recommended for maintaining and monitoring availability.


2 Answers

You need to remove the heroku remote in git using this command:

git remote rm heroku 

Then you can add a new remote using this one:

git remote add heroku [email protected]:your-app.git 

Then try running your heroku commands.

like image 67
Ryan Bigg Avatar answered Sep 29 '22 17:09

Ryan Bigg


Run the following

git config -l 

The config key is easy to spot, remote.heroku.url.

Now if your comfortable editing the config directly, just:

git config -e 

If not:

# Confirm you've got the right key git config remote.heroku.url # Substitute your_app_name appropriately git config remote.heroku.url [email protected]:your_app_name.git 

My answer is based off fearless_fool's comment, which lacks much detail.

FYI: The config file is located in /your_git_repo/.git/config

like image 33
Derek Litz Avatar answered Sep 29 '22 17:09

Derek Litz