spree_shared icon indicating copy to clipboard operation
spree_shared copied to clipboard

Multi-tenancy for Spree using Apartment (per tenant databases).

Results 8 spree_shared issues
Sort by recently updated
recently updated
newest added

Getting this error on heroku production deploys when a memcache resource is enabled ``` -----> Preparing app for Rails asset pipeline Running: rake assets:precompile I, [2021-12-25T04:04:52.324657 #2170] INFO -- sentry:...

Some seeds seem to get loaded and others do not when running the bootstrap command. For example, spree_stores gets loaded but spree_stores does not.

This PR changes the `TenantInitializer` to use [`Apartment::Tenant.drop`](https://github.com/rails-on-services/apartment/blob/6ce41138337a46829e9a06ff31c7811a7e42aa18/lib/apartment/adapters/abstract_adapter.rb#L62) instead of the raw `DROP SCHEMA IF EXISTS #{db_name} CASCADE` SQL, which only works for PostgreSQL. This allows the task to be...

Hello, I've been using this gem for a few months in development with spree 3.0 and have been noticing this very subtle problem where sometimes the URLs in the app...

The README states the following regarding customizing the tenant identifier: > By default tenant will resolve to `Apartment::Tenant.current_tenant` but you can change it - eg. suppose you use databases like...

Hi - I get the below error while running rake spree_shared:bootstrap['store1']. ActiveRecord::StatementInvalid: SQLite3::SQLException: near "SCHEMA": syntax error: DROP SCHEMA IF EXISTS store2 CASCADE Below are my spree gems. gem 'spree',...

`$ bundle exec rake spree_shared:bootstrap['store1']` rake aborted! NoMethodError: undefined method 'tenant_proc=' for #Class:0x007f9b4b9142c0 /Users/PATH_OF_PROJECT/config/initializers/apartment.rb:51:in '' /Users/PATH_OF_PROJECT/config/environment.rb:5:in `' Tasks: TOP => spree_shared:bootstrap => environment (See full trace by running task with...

I have been trying to setup multi-tenancy with Spree 4.6 running on Rails 7. Looks like ros-apartment gem is no longer being maintained and not properly compatible with Rails 7....