Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix sandbox script to also include spree_sample gem and load samples

Damian Legawiec0ca9614ee3ba
diff --git a/bin/sandbox.sh b/bin/sandbox.sh
index be6a7c1661..5a3e201b2c 100755
--- a/bin/sandbox.sh
+++ b/bin/sandbox.sh
@@ -71,6 +71,7 @@ gem 'spree', path: '..'
gem 'spree_frontend', path: '../frontend'
gem 'spree_backend', path: '../backend'
gem 'spree_emails', path: '../emails'
+gem 'spree_sample', path: '../sample/'
$SPREE_AUTH_DEVISE_GEM
$SPREE_GATEWAY_GEM
gem 'spree_i18n', github: 'spree-contrib/spree_i18n', branch: 'master'
@@ -102,7 +103,7 @@ RUBY
bundle install --gemfile Gemfile
bundle exec rails db:drop || true
bundle exec rails db:create
-bundle exec rails g spree:install --auto-accept --user_class=Spree::User
+bundle exec rails g spree:install --auto-accept --user_class=Spree::User --sample=true
if [ "$SPREE_HEADLESS" == "" ]; then
bundle exec rails g spree:frontend:install
bundle exec rails g spree:backend:install