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

Internal URLs are to localhost #29

Closed
craigsadler opened this issue Aug 1, 2014 · 1 comment
Closed

Internal URLs are to localhost #29

craigsadler opened this issue Aug 1, 2014 · 1 comment

Comments

@craigsadler
Copy link

Galileo works beautifully running on a local machine, but when run on a remote server, editing pages does not work because the browser tries to connect to the localhost instead of the remote server. I can work around this, but it requires transferring the database file to the remote server for each edit. Not ideal.

It looks like this happens in Mojo using the "for_url" method.

@jberger
Copy link
Owner

jberger commented Aug 19, 2014

I'm sorry, but I cannot recreate this bug. Are you sure your host system is setup correctly? Also are you using a relatively recent Mojolicious? To test you can run this:

perl -Mojo -E 'a("/" => sub { $_->render( text => $_->url_for("index") ->to_abs ) } => "index")->start' daemon

It should give a full path without "localhost".

@jberger jberger closed this as completed Aug 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants