DEV Community

n350071๐Ÿ‡ฏ๐Ÿ‡ต
n350071๐Ÿ‡ฏ๐Ÿ‡ต

Posted on

[Heroku] No app specified. ๐Ÿ˜… how to omit -a, --a option

๐Ÿค” Situation

$ heroku apps:info
 โ–ธ    No app specified.
 โ–ธ    USAGE: heroku info my-app

๐Ÿ‘ Solution

1. Check your git remote

$ git remote -v
origin  git@github.com:n350071/my-app.git (fetch)
origin  git@github.com:n350071/my-app.git (push)

2. set the git remote to heroku

Then, Heroku will automatically detect your app when you're in the git managed directory.

$ heroku git:remote --app my-app-prototype
set git remote heroku to https://git.heroku.com/my-app-prototype.git

$ git remote -v
heroku  https://git.heroku.com/my-app-prototype.git (fetch)
heroku  https://git.heroku.com/my-app-prototype.git (push)
origin  git@github.com:n350071/my-app.git (fetch)
origin  git@github.com:n350071/my-app.git (push)

๐Ÿฆ„ Solved

$ heroku apps:info
=== my-app-prototype
Addons:         cleardb:ignite
                sendgrid:starter
Dynos:          web: 1
Git URL:        https://git.heroku.com/my-app-prototype.git
Region:         us
Repo Size:      0 B
Slug Size:      71 MB
Stack:          heroku-18

Top comments (0)