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

前端 未结 2 1974
忘了有多久
忘了有多久 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: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.

提交回复
热议问题