Content Page #19
@@ -175,8 +175,9 @@ jobs:
|
|||||||
# Start Next with explicit memory settings for CI stability
|
# Start Next with explicit memory settings for CI stability
|
||||||
echo "🚀 Starting Next.js server on $HOST:$PORT..."
|
echo "🚀 Starting Next.js server on $HOST:$PORT..."
|
||||||
|
|
||||||
# Use nohup to ensure the process survives and redirect output properly
|
# Set environment variable and start server
|
||||||
nohup NODE_OPTIONS="--max-old-space-size=4096" node node_modules/next/dist/bin/next start -p "$PORT" -H "$HOST" > .next/runner.log 2>&1 &
|
export NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
|
nohup node node_modules/next/dist/bin/next start -p "$PORT" -H "$HOST" > .next/runner.log 2>&1 &
|
||||||
SVPID=$!
|
SVPID=$!
|
||||||
echo "$SVPID" > .next/runner.pid
|
echo "$SVPID" > .next/runner.pid
|
||||||
echo "🌐 Server PID: $SVPID"
|
echo "🌐 Server PID: $SVPID"
|
||||||
|
|||||||
Reference in New Issue
Block a user