Renamed Heroku's hostname, now it can't find the application

前端 未结 2 1973
忘了有多久
忘了有多久 2021-02-07 15:19

I previously had my Heroku\'s application name at:

shielded-meadow-9293.heroku.com

This was the name when I created the Heroku remote and fired up the dyno. Afte

相关标签:
2条回答
  • 2021-02-07 15:30

    In your terminal:

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

    See here

    Heroku docs here.

    0 讨论(0)
  • 2021-02-07 15:38

    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.

    0 讨论(0)
提交回复
热议问题