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 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -