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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Installer: fixed auto starting the server after install
Damian Legawiec793b205e15b5
diff --git a/install.sh b/install.shindex 50dcfd6f03..54fc274f3c 100755--- a/install.sh+++ b/install.sh@@ -226,9 +226,9 @@ get_app_name() {if [ -d "$APP_NAME" ]; thenprint_warning "Directory '$APP_NAME' already exists"- read -p "Remove and continue? (y/n): " -n 1 -r+ read -p "Remove and continue? (y/n): " -n 1 -r REMOVE_DIRecho- if [[ $REPLY =~ ^[Yy]$ ]]; then+ if [[ $REMOVE_DIR =~ ^[Yy]$ ]]; thenrm -rf "$APP_NAME"breakelse@@ -259,11 +259,11 @@ ask_sample_data() {echo -e "${BLUE}Press Enter to load sample data (recommended for testing)${NC}"echo- read -p "Load sample data? (Y/n): " -r+ read -p "Load sample data? (Y/n): " -r LOAD_SAMPLE_INPUTecho# Default to yes if empty response- if [[ -z "$REPLY" ]] || [[ $REPLY =~ ^[Yy]$ ]]; then+ if [[ -z "$LOAD_SAMPLE_INPUT" ]] || [[ $LOAD_SAMPLE_INPUT =~ ^[Yy]$ ]]; thenLOAD_SAMPLE_DATA="true"print_success "Sample data will be loaded"else@@ -633,11 +633,11 @@ show_final_instructions() {fi# Ask if user wants to start server now (Y is default)- read -p "Would you like to start the server now? (Y/n): " -r+ read -p "Would you like to start the server now? (Y/n): " -r START_SERVERecho# Default to yes if empty response- if [[ -z "$REPLY" ]] || [[ $REPLY =~ ^[Yy]$ ]]; then+ if [[ -z "$START_SERVER" ]] || [[ $START_SERVER =~ ^[Yy]$ ]]; thenprint_info "Starting server... (Press Ctrl+C to stop)"cd "$APP_NAME"bin/dev