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.

Fixed using remote template.rb in the classic installer

Damian Legawiec3d9e75be2267
diff --git a/install.sh b/install.sh
index 0c79d0b5d9..37106af863 100755
--- a/install.sh
+++ b/install.sh
@@ -970,11 +970,11 @@ create_rails_app() {
mkdir -p "$USER_GEM_HOME"
fi
- # Download template if running from URL, or use local if exists
- TEMPLATE_FILE="backend/template.rb"
- if [ ! -f "$TEMPLATE_FILE" ]; then
- print_info "Downloading Spree Rails template..."
- curl -fsSL "$TEMPLATE_URL" -o "$TEMPLATE_FILE"
+ # Use local template if available, otherwise use remote URL
+ if [ -f "backend/template.rb" ]; then
+ TEMPLATE_FILE="backend/template.rb"
+ else
+ TEMPLATE_FILE="$TEMPLATE_URL"
fi
print_info "Creating Spree Commerce application '$APP_NAME'..."
@@ -1070,11 +1070,6 @@ create_rails_app() {
rm -f /tmp/spree_install.log
fi
- # Clean up downloaded template if it was downloaded
- if [ -f "$TEMPLATE_FILE" ] && [ "$TEMPLATE_FILE" != "backend/template.rb" ]; then
- rm "$TEMPLATE_FILE"
- fi
-
print_success "Spree Commerce application created successfully"
}