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.

For sandbox use Rails 8.1, for the installer use 8.0

Damian Legawiec88b0110d3b08
diff --git a/bin/sandbox.sh b/bin/sandbox.sh
index f5a25e9773..df5a366f99 100755
--- a/bin/sandbox.sh
+++ b/bin/sandbox.sh
@@ -8,5 +8,5 @@ cd "$(dirname "$0")/.."
echo "Creating Spree sandbox application..."
-./install.sh --app-name=sandbox --verbose --auto-accept --local --force
+RAILS_VERSION="${RAILS_VERSION:-8.1.1}" ./install.sh --app-name=sandbox --verbose --auto-accept --local --force
rm -rf sandbox/.git
diff --git a/install.sh b/install.sh
index 5b9f5bd436..69385e9820 100755
--- a/install.sh
+++ b/install.sh
@@ -21,7 +21,7 @@ BOLD='\033[1m'
NC='\033[0m' # No Color
# Configuration
-RAILS_VERSION="8.1.1"
+RAILS_VERSION="${RAILS_VERSION:-8.0.4}"
APP_NAME=""
LOAD_SAMPLE_DATA="false"
TEMPLATE_URL="https://raw.githubusercontent.com/spree/spree/main/template.rb"