diff --git a/serverinfo/post-receive b/serverinfo/post-receive index 92c03db..a27625a 100644 --- a/serverinfo/post-receive +++ b/serverinfo/post-receive @@ -126,7 +126,10 @@ echo ">>> Fixing Permissions..." chown -R ti:ti $TARGET_BACKEND $TARGET_SSR # H. PM2 Management - SSR Next.js -cd $TARGET_SSR/apps/ssr +cd $TARGET_SSR +echo ">>> Creating symlink for .next..." +ln -sf apps/ssr/.next .next +cd apps/ssr echo ">>> Managing PM2 Process: $PM2_NAME_SSR..." $PM2 delete $PM2_NAME_SSR 2>/dev/null || true PORT=$SSR_PORT $PM2 start $BUN --name $PM2_NAME_SSR \