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.

Clean up installer messages during installation

Damian Legawiecf0c42a8cb84b
diff --git a/install.sh b/install.sh
index 7b1b06dcd4..118387aa03 100755
--- a/install.sh
+++ b/install.sh
@@ -767,11 +767,11 @@ create_rails_app() {
# Change message based on elapsed time
if [ $elapsed -lt 30 ]; then
- msg="Installing Rails and dependencies"
+ msg="Installing Spree dependencies"
elif [ $elapsed -lt 60 ]; then
- msg="Installing Spree gems (this takes a while)"
+ msg="Installing Spree gems"
elif [ $elapsed -lt 90 ]; then
- msg="Setting up Devise authentication"
+ msg="Setting up authentication"
elif [ $elapsed -lt 120 ]; then
msg="Running Spree generators"
elif [ $elapsed -lt 150 ]; then
@@ -782,7 +782,7 @@ create_rails_app() {
msg="Almost done, finalizing installation"
fi
- printf "\r${BLUE}${spin:$i:1}${NC} ${msg}... (${elapsed}s)"
+ printf "\r${BLUE}${spin:$i:1}${NC} ${msg}... "
sleep 1
elapsed=$((elapsed + 1))
done
diff --git a/template.rb b/template.rb
index 33e3478358..69fff49d03 100644
--- a/template.rb
+++ b/template.rb
@@ -49,8 +49,8 @@ def setup_importmap
end
end
-def setup_devise
- say 'Setting up Devise authentication...', :blue
+def setup_auth
+ say 'Setting up authentication...', :blue
if VERBOSE
rails_command 'generate devise:install'
@@ -150,7 +150,7 @@ add_gems
after_bundle do
setup_importmap
configure_development_environment
- setup_devise
+ setup_auth
install_spree
setup_procfile
setup_database