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.

Automatically install spree_dev_tools during installation

Damian Legawiec5130b8a03c3d
diff --git a/template.rb b/template.rb
index 69fff49d03..7889026773 100644
--- a/template.rb
+++ b/template.rb
@@ -74,6 +74,15 @@ def install_spree
end
end
+def install_spree_dev_tools
+ say 'Running Spree Dev Tools installer...', :blue
+ if VERBOSE
+ rails_command "generate spree_dev_tools:install"
+ else
+ run "bin/rails generate spree_dev_tools:install >/dev/null 2>&1"
+ end
+end
+
def configure_development_environment
say 'Configuring development environment...', :blue
@@ -152,6 +161,7 @@ after_bundle do
configure_development_environment
setup_auth
install_spree
+ install_spree_dev_tools
setup_procfile
setup_database
load_sample_data