Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
fix: Update install script to create console environment files
Manus AI7d3b6ed18fd3
diff --git a/scripts/docker-install.sh b/scripts/docker-install.shindex a8905bff..c788413c 100755--- a/scripts/docker-install.sh+++ b/scripts/docker-install.sh@@ -96,7 +96,7 @@ elsefi###############################################################################-# 6. Write console/fleetbase.config.json atomically+# 6. Write console/fleetbase.config.json atomically (for development runtime)###############################################################################CONFIG_DIR="console"CONFIG_PATH="$CONFIG_DIR/fleetbase.config.json"@@ -113,6 +113,37 @@ JSONmv -f "${CONFIG_PATH}.tmp" "$CONFIG_PATH"echo "✔ $CONFIG_PATH updated"+###############################################################################+# 6b. Write console environment files (.env.development and .env.production)+###############################################################################+ENV_DIR="$CONFIG_DIR/environments"+mkdir -p "$ENV_DIR"++# Write .env.development+cat > "$ENV_DIR/.env.development" <<ENV_DEV+API_HOST=http://$HOST:8000+API_NAMESPACE=int/v1+SOCKETCLUSTER_PATH=/socketcluster/+SOCKETCLUSTER_HOST=$HOST+SOCKETCLUSTER_SECURE=false+SOCKETCLUSTER_PORT=38000+OSRM_HOST=https://router.project-osrm.org+ENV_DEV++# Write .env.production+cat > "$ENV_DIR/.env.production" <<ENV_PROD+API_HOST=https://$HOST:8000+API_NAMESPACE=int/v1+API_SECURE=true+SOCKETCLUSTER_PATH=/socketcluster/+SOCKETCLUSTER_HOST=$HOST+SOCKETCLUSTER_SECURE=true+SOCKETCLUSTER_PORT=38000+OSRM_HOST=https://router.project-osrm.org+ENV_PROD++echo "✔ Console environment files updated"+################################################################################ 7. Start stack, wait for DB, then run deploy###############################################################################