Discussions

Ask a Question
Back to All

How to fix RedirectTo "locomotive.local"

Hi

I have installed the locomotive engine to the remote server.

But always redirect to the "locomotive.local" , the local browser can not resolve it.

How to fix it?

Thanks



[LocomotiveCMS] [fetch site] host = localhost / site_handle = "sign_up" / locale = :en
MONGODB | 127.0.0.1:27017 req:12 conn:1:1 sconn:175 | locomotive_engine_dev.find | STARTED | {"find"=>"locomotive_sites", "filter"=>{"handle"=>"sign_up"}, "limit"=>1, "sort"=>{"_id"=>1}, "$db"=>"locomotive_engine_dev", "lsid"=>{"id"=><BSON::Binary:0x20500 type=uuid data=0x239cb27818b64e10...>}}
MONGODB | 127.0.0.1:27017 req:12 | locomotive_engine_dev.find | SUCCEEDED | 0.006s
Processing by Locomotive::RegistrationsController#new as HTML
Redirected to http://locomotive.local:3000/locomotive/
Filter chain halted as :redirect_to_main_host rendered or redirected
Completed 302 Found in 4ms (MongoDB: 0.0ms | Allocations: 612)