このエントリーをはてなブックマークに追加

へーこんなものがあるのかと思った.

One good solution is offered by Tim Pope on his blog. He has bought 
the domain name smackaho.st and made it a localhost wildcard. One of 
the people who commented on that blog posting has sone something 
similar with a shorter domain name, lvh.me, and we’re going to use 
that instead.

http://asciicasts.com/episodes/221-subdomains-in-rails-3

lvh.meというドメインを持っている人が開発用に127.0.0.1でDNS登録してくれている. localhost以外のドメインやサブドメインのテストでローカルの開発環境のアプリにアクセスしたいときに使えるというもの.

$ ping lvh.me -c 3
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.044 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.061 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.035 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.035/0.046/0.061/0.013 ms



記事一覧へ