Fix PM2 next.js startup command

This commit is contained in:
Your Name committed 2026-06-03 08:57:29 +07:00
1 parent 45a687a447
commit 33038e4a42
4 files changed
+13 -4

No files matched your search

+4 -1
View File
@@ -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 {
+4 -1
View File
@@ -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 {
+4 -1
View File
@@ -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 {
+1 -1
View File
@@ -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