What could be the reason why "heroku open" command is not working?

Viewed 704

I have successfully deployed a django app on heroku using this guide. The heroku cli is installed as a snap application on my system - I'm running Fedora 32 on a Dell xps 15 - and everything seems to be working fine except when I try to run the app locally.

When I attempt to run the app locally, I get the following error:

$ heroku open 

 ▸    Error opening web browser.

 ▸    Error: Exited with code 4
 ▸    
 ▸    Manually visit https://[myapp].herokuapp.com/ in your browser.

I tried variations of the command to no avail:

$ heroku open -a [myapp]
$ heroku open -r https://git.heroku.com/[myapp].git

When, instead, I run it with heroku local it runs without any problems. I look at the logs but couldn't find any clues. Neither was I able to find any useful information.

What am I missing?

1 Answers

Try setting the browser in your ~/.bashrc using export BROWSER=

Related