3 ms·
Do you need subdomains specificially, or just different addresses that resolve to localhost? If so you could use e.g http://127.1:3000/ http://127.1:3000/, http
by Erwin 17y ago
Do you need subdomains specificially, or just different addresses that resolve to localhost? If so you could use e.g http://127.1:3000/ http://127.1:3000/, http://127.2:3000/ http://127.2:3000/ etc. (or the full 127.0.0.1 127.0.0.2 if your browser doesn't like 127.1).
- samdk 17y agoOne of the (Rails) apps I'm developing needs subdomains, and I don't think it's uncommon. We probably could find some way to develop without subdomains, but Rails likes doing it this way. While aliasing localhost takes about 30 seconds (on Linux, at least), this trick will make it a little easier for new contributers to get involved.
- 100k 17y agoHaving subdomains is nice when you're developing an app that will use sudomains for accounts in production.
- mootothemax 17y agoFor getting up and running you don't necessarily need them, but it can make life easier e.g. name-based virtual hosts.