Reputation: 155
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.
Upvotes: 3
Views: 6964
Reputation: 718
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
Upvotes: 1
Reputation: 3739
It looks like you have a conflict between the Heroku gem, and the Heroku Toolbelt. I'm guessing you have installed the Heroku Toolbelt, but still have the Heroku gem in your gem file.
bundle
command to update your Gemfile.lockgem uninstall heroku
(NOTE: there may be multiple versions of the Heroku gem installed, and you'll need to uninstall all of them.)heroku addons
heroku: command not found
then you don't have the Heroku Toolbelt installed.NOTE: If you're not in the app's directory, you'll need to add --app myapp1
to the Heroku commands.
Hope this helps.
Upvotes: 0