Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when run in vagrant vm #47

Closed
yushun opened this issue Sep 18, 2012 · 2 comments
Closed

Error when run in vagrant vm #47

yushun opened this issue Sep 18, 2012 · 2 comments
Labels

Comments

@yushun
Copy link

yushun commented Sep 18, 2012

I'm getting this error:

Failure in opening file:///vagrant/tmp/letter_opener/1347902079_5d48af6/plain.html with options {}: Unable to find a browser command.

When I try rails console Launchy.open("file://#{file}")
It give the same error.

@nashby
Copy link
Collaborator

nashby commented Sep 24, 2012

Hi, it doesn't look like an issue with letter_opener. Are you using Ubuntu in your vagrant setup, right? Could you try open some.html in your terminal?

@ryanb
Copy link
Owner

ryanb commented Oct 1, 2012

I don't think Launchy is designed to work inside a Vagrant VM since it needs direct access to a browser. There is a similar issue when using letter_opener in a separate staging server.

You may want to check out the fork of the project mentioned in (this pull request)[https://github.com//pull/12]. I suggest someone make a gem called "remote_letter_opener" which does this since I don't plan to turn this into an engine at the moment.

@ryanb ryanb closed this as completed Oct 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants