Fix PM2 next.js startup

This commit is contained in:
Your Name committed 2026-06-03 08:40:58 +07:00
1 parent 4af1d0e03b
commit 45a687a447
1 file changed
+2 -2
+2 -2
View File
@@ -135,8 +135,8 @@ rsync -a --delete $TEMP_DIR/node_modules/ $TARGET_SSR/node_modules/
cd $TARGET_SSR
echo ">>> Managing PM2 Process: $PM2_NAME_SSR..."
$PM2 restart $PM2_NAME_SSR 2>/dev/null || \
$PM2 start $TARGET_SSR/node_modules/.bin/next --name $PM2_NAME_SSR \
-- start -p $SSR_PORT
$PM2 start $BUN --name $PM2_NAME_SSR \
-- run next start -p $SSR_PORT
echo "✅ PM2 process '$PM2_NAME_SSR' is running on port $SSR_PORT."
# I. Cleanup