I can't do heroku open on the vagrant.

Asked 1 years ago, Updated 1 years ago, 72 views

With Vagrant, we deployed CentOS to create a ruby on rails development environment.

After installing heroku,

 git push heroku master

In , push the repository to Heroku and

heroku open

The following error appears when typing

 [vagrant@vagrant-centos65sample]$ heroku open
Opening peaceful-bayou-2427 ... failed
 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report at: https://github.com/heroku/heroku/issues/new

    Error: Unable to find a browser command.If this is unexpected, Please run with environment variable LAUNCHY_DEBUG = true or the '-d' commandline option and file debug at https://github.com/copiousfreetime/launchy/issues/new (Launchy:: CommandNotFoundError)
    Command—heroku open
    Version: heroku-toolbelt/3.42.15 (x86_64-linux) ruby/2.0.0
    Error ID: c716dec578b84cc4805fea546d15328b


    More information in /home/vagrant/.heroku/error.log

I've looked into various causes, but I'm at a loss because I couldn't solve them.

If you know what to do, please tell me.
Thank you for your cooperation.

ruby-on-rails heroku vagrant

2022-09-30 20:59

1 Answers

I should also look at /home/vagrant/.heroku/error.log, but I can't find the browser.
(I don't have the same environment, so I guess all of the following.)

The browser used by the heroku command can be changed with the environment variable BROWSER, so for example, if you use Firefox,

BROWSER=firefox heroku open

with or in advance

export BROWSER=firefox

You should configure it as shown in .

However, you may not have installed a GUI browser in your development virtual environment.
In that case, you may use tools such as w3m, lynx, wget, curl, etc., but it would be comfortable to give up and view them on the host side.
If BROWSER is set to echo, the URL will be printed in heroku open, so I think I should open it in my daily browser.

BROWSER=echo heroku open


2022-09-30 20:59

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.