You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
the seed does not load.
The problem is not with this gem is with Spree because in 'spree_core' the task "db:load_dir" is used 'require' insted of 'load'.
'require' only load the file ones for each server start, so for a multitenant app this is a problem because seeds are only loaded in the first tenant.
So i was wondering if this issue can be solve in this gem.
regards
The text was updated successfully, but these errors were encountered:
thank you for your awnser but this solution does not work for me, in my console, manually i do:
$rails c
Apartment::Tenant.switch 'aa'
Spree::Core::Engine.load_seed if defined?(Spree::Core) # seeds are loaded ok
Apartment::Tenant.switch 'bb'
Spree::Core::Engine.load_seed if defined?(Spree::Core) # seeds are no loaded
when i restart the server the task can be executed ones more and so on.
so i don't think that solution could work. in my Spree local copy i have changed 'require' by 'load' and everythink works fine, i can switch and load seed, no matter how many times.
maybe for the configuration of each tenent it work but not for the db:seed task.
branch 3-0-stable
file lib/tasks/db.rake:16
the seed does not load.
The problem is not with this gem is with Spree because in 'spree_core' the task "db:load_dir" is used 'require' insted of 'load'.
'require' only load the file ones for each server start, so for a multitenant app this is a problem because seeds are only loaded in the first tenant.
So i was wondering if this issue can be solve in this gem.
regards
The text was updated successfully, but these errors were encountered: