Closed craigsadler closed 10 years ago
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".
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.