3cace7ab42
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>
19 lines
413 B
JavaScript
19 lines
413 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: "product-sourcing",
|
|
cwd: "/www/wwwroot/sourcing.simosen.cn/app",
|
|
script: "deploy/start.sh",
|
|
interpreter: "/bin/bash",
|
|
env: {
|
|
NODE_ENV: "production",
|
|
PORT: "9477",
|
|
DATA_FILE: "/www/data/product-sourcing/items.json",
|
|
},
|
|
max_memory_restart: "512M",
|
|
autorestart: true,
|
|
watch: false,
|
|
},
|
|
],
|
|
};
|