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
72 stars 43 forks source link

How can I give a facility to add a tenant dynamically? #16

Open forever-ram opened 9 years ago

forever-ram commented 9 years ago

My client want to create multi merchant site using spree. I give him the solution for this gem. but as I and my client found that here is no any facility to create a tenant dynamically. we have to run a rake command to create every tenant and client have to depend on the developer to create every tenant. Do we have any solution for this?

And I need to use this gem with spree-2-4, do your team working on this or I'll fork this and update for spree-2-4

tacticiankerala commented 9 years ago

You can upgrade to spree-2-4-stable. It worked for me, except on thing - you have to remove Spree::TokenizedPermission form tenanted_models as this class is no longer there in spree repo.

refer: https://github.com/tacticiankerala/spree_multi_tenant/commit/c19607c0e6303fbb36771e616efc5161c485465f

forever-ram commented 9 years ago

Thanks Sreenath, I'm working on upgrade to spree-2-4-stable . My concern is about the add tenant. As I checked we have no admin view to add tenant and admin for that tenant. Each time when we need to add a new tenant we have to create via console and its very problematic for my client because each time when he need to add a new one, he have to call me or any other developer.

so just want to confirm do this gem support any view that I missed to check or I'll add a functionality to so that owner of the first tenant can create more tenant via admin view?

tacticiankerala commented 9 years ago

This gem does not provide any front end where you can create a new tenant.

I think it will be fairly straight forward for us to create such a view based on our business requirements.

PS: I am also interested in knowing how to implement 'super admin' who is not part of any tenant but can manage all. If you find any solutions please share. On Dec 29, 2014 10:44 AM, "forever-ram" notifications@github.com wrote:

Thanks Sreenath, I'm working on upgrade to spree-2-4-stable . My concern is about the add tenant. As I checked we have no admin view to add tenant and admin for that tenant. Each time when we need to add a new tenant we have to create via console and its very problematic for my client because each time when he need to add a new one, he have to call me or any other developer.

so just want to confirm do this gem support any view that I missed to check or I'll add a functionality to so that owner of the first tenant can create more tenant via admin view?

— Reply to this email directly or view it on GitHub https://github.com/stefansenk/spree_multi_tenant/issues/16#issuecomment-68232951 .