Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some heroku commands couldn't find my application

I can find my apps in heroku apps command, and also do some command to read information from app like heroku addons --app appname.

But I couldn't find my apps in some command like heroku addons:add addon_name, heroku pg:reset.



Work commands

heroku apps:

=== My Apps
my_app_1
my_app_2

(Also I can see my apps in heroku web dashboard.)


heroku addons --app my_app_1(not in my_app_1 folder):

=== my_app_1 Configured Add-ons
shared-database:5mb


heroku addons(in my_app_1 folder):

=== my_app_1 Configured Add-ons
shared-database:5mb



Doesn't work commands

heroku addons:add sendgrid(in my_app_1 folder):

 !    No app specified.
 !    Run this command from an app folder or specify which app to use with --app 


heroku pg:reset DATABASE --confirm my_app_1(in my_app_1 folder):

Resetting SHARED_DATABASE (DATABASE_URL)... failed
 !    Resource not found


Here is my environment.

  • Max OS X Lion (10.7.4)
  • rvm 1.13.8 (stable)
  • ruby 1.9.3p194
  • heroku 2.26.5
like image 790
supermomonga Avatar asked Dec 03 '25 15:12

supermomonga


1 Answers

Adding the heroku's remote configuration to git did the trick for me. Validate if you have it configured with git remote -v on the terminal and you should get something like:

heroku  [email protected]:your-app.git (fetch)
heroku  [email protected]:your-app.git (push)

if you don't, add it with

git remote add heroku [email protected]:your-app.git
like image 139
Gus Avatar answered Dec 06 '25 06:12

Gus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!