more install fixes
Some checks are pending
CI Pipeline / Run Tests (push) Waiting to run
CI Pipeline / Lint Code (push) Waiting to run
CI Pipeline / Security Scan (push) Waiting to run
CI Pipeline / E2E Tests (push) Blocked by required conditions

This commit is contained in:
Enki 2025-08-27 13:36:10 -07:00
parent 3d2a4209fc
commit 963966ee0c
2 changed files with 26 additions and 13 deletions

View File

@ -218,7 +218,7 @@ if [ "$ENABLE_MONITORING" = true ] && [ "$USE_EXISTING_MONITORING" = false ]; th
elif [ "$USE_EXISTING_MONITORING" = true ]; then
MONITORING_FLAG="--use-existing-monitoring"
fi
./scripts/setup_systemd.sh $MONITORING_FLAG
./scripts/setup_systemd.sh $MONITORING_FLAG --skip-build
# Step 4: Configure cache (in-memory LRU - no Redis needed)
echo "🧠 Gateway uses in-memory LRU cache (no Redis required)"

View File

@ -24,6 +24,7 @@ fi
# Parse command line arguments
ENABLE_MONITORING=false
USE_EXISTING_MONITORING=false
SKIP_BUILD=false
while [[ $# -gt 0 ]]; do
case $1 in
--with-monitoring)
@ -34,9 +35,13 @@ while [[ $# -gt 0 ]]; do
USE_EXISTING_MONITORING=true
shift
;;
--skip-build)
SKIP_BUILD=true
shift
;;
*)
echo "Unknown option: $1"
echo "Usage: $0 [--with-monitoring|--use-existing-monitoring]"
echo "Usage: $0 [--with-monitoring|--use-existing-monitoring|--skip-build]"
exit 1
;;
esac
@ -70,7 +75,8 @@ else
echo " User $SERVICE_USER already exists"
fi
# Build application
# Build application (unless skipped)
if [ "$SKIP_BUILD" = false ]; then
echo "🔨 Building application..."
# Create bin directory if it doesn't exist
mkdir -p bin
@ -84,6 +90,13 @@ if [ ! -f "bin/gateway" ]; then
exit 1
fi
echo "✅ Application built successfully"
else
echo "⏭️ Skipping build (using existing binary)"
if [ ! -f "bin/gateway" ]; then
echo "❌ No existing binary found at bin/gateway"
exit 1
fi
fi
# Create installation directory
echo "📁 Setting up installation directory..."