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.
Source:stackexchange.com