From 33038e4a4210d26ded58448d521878a8a0e46d58 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 3 Jun 2026 08:57:29 +0700 Subject: [PATCH] Fix PM2 next.js startup command --- serverinfo/admin.homaroma.shop.conf | 5 ++++- serverinfo/api.homaroma.shop.conf | 5 ++++- serverinfo/homaroma.shop.conf | 5 ++++- serverinfo/post-receive | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/serverinfo/admin.homaroma.shop.conf b/serverinfo/admin.homaroma.shop.conf index 5220351..69ad05f 100644 --- a/serverinfo/admin.homaroma.shop.conf +++ b/serverinfo/admin.homaroma.shop.conf @@ -1,7 +1,10 @@ server { listen 80; server_name admin.homaroma.shop; - location /.well-known/acme-challenge/ { root /var/www/certbot; } + location ~ /.well-known/acme-challenge { + allow all; + root /var/www/certbot; + } location / { return 301 https://$host$request_uri; } } server { diff --git a/serverinfo/api.homaroma.shop.conf b/serverinfo/api.homaroma.shop.conf index cfba3f4..1915a6e 100644 --- a/serverinfo/api.homaroma.shop.conf +++ b/serverinfo/api.homaroma.shop.conf @@ -1,7 +1,10 @@ server { listen 80; server_name api.homaroma.shop; - location /.well-known/acme-challenge/ { root /var/www/certbot; } + location ~ /.well-known/acme-challenge { + allow all; + root /var/www/certbot; + } location / { return 301 https://$host$request_uri; } } server { diff --git a/serverinfo/homaroma.shop.conf b/serverinfo/homaroma.shop.conf index 21c91b6..9a4f82a 100644 --- a/serverinfo/homaroma.shop.conf +++ b/serverinfo/homaroma.shop.conf @@ -1,7 +1,10 @@ server { listen 80; server_name homaroma.shop www.homaroma.shop; - location /.well-known/acme-challenge/ { root /var/www/certbot; } + location ~ /.well-known/acme-challenge { + allow all; + root /var/www/certbot; + } location / { return 301 https://$host$request_uri; } } server { diff --git a/serverinfo/post-receive b/serverinfo/post-receive index 9b4e736..538ee36 100644 --- a/serverinfo/post-receive +++ b/serverinfo/post-receive @@ -136,7 +136,7 @@ cd $TARGET_SSR echo ">>> Managing PM2 Process: $PM2_NAME_SSR..." $PM2 restart $PM2_NAME_SSR 2>/dev/null || \ $PM2 start $BUN --name $PM2_NAME_SSR \ - -- run next start -p $SSR_PORT + -- x next start -p $SSR_PORT echo "✅ PM2 process '$PM2_NAME_SSR' is running on port $SSR_PORT." # I. Cleanup