spree-contrib / spree-multi-domain

Multiple Spree stores on different domains - single unified backed for processing orders
https://guides.spreecommerce.org
194 stars 191 forks source link

How do I view the frontend of a non default domain on localhost? #129

Closed acreilly closed 9 years ago

acreilly commented 9 years ago

The answer is probably right in front of me but, how do I view the frontend of a non default domain on localhost?

dpritchett commented 9 years ago

@acreilly have you tried setting up new domains via /etc/hosts and then connecting to those domains in the browser rather than connecting to http://localhost:3000.

127.0.0.1 primary-spree-host.com     
127.0.0.1 secondary-spree-host.com
jsheng08 commented 9 years ago

I use localhost:3000 as my default and sg.localhost:3000 as my secondary. It works.

JDutil commented 9 years ago

I typically use http://pow.cx/ to run dev environments. The other answers above work as well. Essentially you just need a named dns to resolve to localhost.