Question

I'm trying to test out some Facebook features on my rails application and I would like to use a host file to redirect my foo.com to localhost:3000 when developing.

Here's what I've added to my private/etc/hosts file:

127.0.0.1:3000 foo.com

Then I flushed my DNS cache:

dscacheutil -flushcache

Yet I still can't access my local rails application using foo.com. Any suggestions?

Was it helpful?

Solution

I think you shouldn't set port at hosts file. Port would be setup by rails rails server -p 3000

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top