DEV Community

n350071πŸ‡―πŸ‡΅
n350071πŸ‡―πŸ‡΅

Posted on

3 1

[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

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay