Reputation: 2255
I'm new to Heroku and I'm working with someone on an app via github. I cloned the repo from github, but now when I run heroku commands (e.g. heroku run python
) I get the following error even though I'm running it from the root of the repo:
! No app specified.
! Run this command from an app folder or specify which app to use with --app APP.
What do I need to do to properly configure the app? The commands work if I pass the --app
flag, but I want to avoid specifying the flag every time.
Upvotes: 0
Views: 63
Reputation: 37507
Once you've cloned the repo you need to connect the repo to your Heroku app via
heroku git:remote
(I guess you may need to use --app <name>
for one last time here) which will create a heroku
remote in your git config - the Heroku CLI uses this to figure out your app name moving forwards.
https://devcenter.heroku.com/articles/collab#clone-the-code
Upvotes: 1