문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top