subdomains using webrick (script/server)
run this in the terminal:
- mate /etc/hosts (or vi /etc/hosts if you don’t have textmate)
- add “127.0.0.1 <SUBDOMAIN>.localhost.local” to your /etc/hosts
- save
- boot webrick by typing script/server
- navigate your browser to http://<SUBDOMAIN>.localhost.local:3000
done.
-
avanslaars reblogged this from weekendonrails
-
weekendonrails posted this