Fix PM2 next.js startup
This commit is contained in:
1 parent
4af1d0e03b
commit
45a687a447
1 file changed
+2
-2
@@ -135,8 +135,8 @@ rsync -a --delete $TEMP_DIR/node_modules/ $TARGET_SSR/node_modules/
|
|||||||
cd $TARGET_SSR
|
cd $TARGET_SSR
|
||||||
echo ">>> Managing PM2 Process: $PM2_NAME_SSR..."
|
echo ">>> Managing PM2 Process: $PM2_NAME_SSR..."
|
||||||
$PM2 restart $PM2_NAME_SSR 2>/dev/null || \
|
$PM2 restart $PM2_NAME_SSR 2>/dev/null || \
|
||||||
$PM2 start $TARGET_SSR/node_modules/.bin/next --name $PM2_NAME_SSR \
|
$PM2 start $BUN --name $PM2_NAME_SSR \
|
||||||
-- start -p $SSR_PORT
|
-- run next start -p $SSR_PORT
|
||||||
echo "✅ PM2 process '$PM2_NAME_SSR' is running on port $SSR_PORT."
|
echo "✅ PM2 process '$PM2_NAME_SSR' is running on port $SSR_PORT."
|
||||||
|
|
||||||
# I. Cleanup
|
# I. Cleanup
|
||||||
|
|||||||
Reference in new issue
Block a user