My Digital Junk Drawer

weekendonrails:

subdomains using webrick (script/server)

run this in the terminal:

  1. mate /etc/hosts (or vi /etc/hosts if you don’t have textmate)
  2. add “127.0.0.1 <SUBDOMAIN>.localhost.local” to your /etc/hosts
  3. save
  4. boot webrick by typing script/server
  5. navigate your browser to http://<SUBDOMAIN>.localhost.local:3000

done.

  1. avanslaars reblogged this from weekendonrails
  2. weekendonrails posted this
Blog comments powered by Disqus