Fix PM2 startup and harden server entry detection.
Use a bash launch script for production and pathToFileURL-based main-module checks so sourcing.simosen.cn listens reliably under PM2. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,8 +3,8 @@ module.exports = {
|
||||
{
|
||||
name: "product-sourcing",
|
||||
cwd: "/www/wwwroot/sourcing.simosen.cn/app",
|
||||
script: "src/server.js",
|
||||
interpreter: "node",
|
||||
script: "deploy/start.sh",
|
||||
interpreter: "/bin/bash",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
PORT: "9477",
|
||||
|
||||
Reference in New Issue
Block a user