ruby on rails - Setting up fake URLs locally that support subdomains -


i'm developing rails 3 app locally on mac. want test locally fake urls support subdomains, e.g. http://blah.example.com , http://blah2.example.com. how can set up?

run favorite shell , terminal:

sudo nano /etc/hosts 

add in new line:

127.0.0.1    *.example.com 

press ctrl+x save.


make sure not delete lines there!


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -