[Fixed]-Renamed Heroku's hostname, now it can't find the application

41👍

In your terminal:

git remote rm heroku
git remote add heroku git@heroku.com:yourappname.git

See here

Heroku docs here.

👤Alex

1👍

For all the people showing up here trying to figure out why a

$ heroku run:detached python script.py -n yyy -a zzzz

command isn’t working, and giving this error:

▸    Couldn't find that app.

it’s because Heroku senses the -a argument as the app name. To ignore these the fix is this, basically adding a --:

$ heroku run:detached -- python script.py -n yyy -a zzzz

and now it will work properly.

Leave a comment