Yup, it's saved. I checked it using cat /etc/hosts
I also restarted ubuntu as a whole. Em quinta-feira, 19 de março de 2015 12:44:50 UTC-3, Vivek Sampara escreveu: > > 1. Did you save the hosts file ? > 2. Did you restart your network ? > > On Thu, Mar 19, 2015 at 7:49 PM, Leandro França <leandroay...@gmail.com > <javascript:>> wrote: > >> Hi there, >> >> I'm using act_as_tenant gem and I would like to test it on my local >> environment. >> I need to have entries like "app1.localhost", "app2.localhost", etc. >> >> I've tried to set those entries on /etc/hosts: >> >> 127.0.0.1 localhost >> 127.0.0.1 app1.localhost >> 127.0.0.1 app2.localhost >> >> >> But http://app2.localhost:3000 does not respond. >> >> Am I missing something? >> >> P.S.: I'm using a vagrant running Ubuntu. >> >> Thanks in advance >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-ta...@googlegroups.com <javascript:>. >> To post to this group, send email to rubyonra...@googlegroups.com >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/ba5c9c06-d2fd-422a-9d15-bc0f98be6474%40googlegroups.com >> >> <https://groups.google.com/d/msgid/rubyonrails-talk/ba5c9c06-d2fd-422a-9d15-bc0f98be6474%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3aadcdff-2e7b-477d-90af-874821cf0f72%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.