title: Subdomains and locally installed Rails app
body: <p>I can't figure out what I'm overlooking, perhaps it's obvious or lack of understanding. </p>
  
  <p>The app I'm working with uses subdomains which on the hosting server work properly. I figured locally installing would kick up some issues around routing, so I read up on making changes to /etc/hosts and using the Ghost gem. Both seem to work fine i.e. localhost:3000/ becomes myapp.local:3000 but I don't understand how to go about logging into a subdomain account. Here's an example... </p>
  
  <ul>
  <li>myapp.local:3000/session/new = the default login page for the app</li>
  <li>myapp.local:3000/signup = default signup page
  
  <ul>
  <li>I can create an account here e.g. Sub1 </li>
  <li>The thank you page is shown w/ the reference to sub1.myapp.com which points to the hosted app (the local db shows this domain as well)</li>
  </ul></li>
  <li>sub1.myapp.local manually added to /etc/hosts and <code>dscacheutil -flushcache</code></li>
  <li>sub1.myapp.local:3000/session/new is the subdomain
  
  <ul>
  <li>login attempts return that this isn't a valid domain. This seems to make sense because the local db shows the url as sub1.myapp.com on the hosting server. </li>
  </ul></li>
  </ul>
  
  <p>So my question is whether there's a local workaround that I can use for development or have I totally missed a fundamental concept along the way?</p>