stefansenk / spree_multi_tenant

Adds multi-tenant support to Spree. Allows completely separate Spree sites with separate admins to be run from the same installation.
BSD 3-Clause "New" or "Revised" License
73 stars 43 forks source link

Not able to run app on localhost #4

Closed harssh closed 11 years ago

harssh commented 11 years ago

Hi, I followed all steps but not able to run app on localhost. What steps should I follow to do that

I get

RuntimeError in Spree::HomeController#index

DomainUnknown

stefansenk commented 11 years ago

Hi harsshhfs,

The domain that you are hitting in the web browser must match the domain field for the corresponding Spree::Tenant, otherwise DomainUnknown is returned.

For example, if you a running via rails server which launches on http://0.0.0.0:3000 you could update the tenant's domain to be 0.0.0.0. Something like:

Spree::Tenant.first.update_attribute(:domain, '0.0.0.0').

Hope that helps.

harssh commented 11 years ago

Yep thanks ............