more install fixes
This commit is contained in:
parent
3d2a4209fc
commit
963966ee0c
@ -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)"
|
||||
|
@ -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..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user