官网 初版
This commit is contained in:
20
ecosystem.config.js
Normal file
20
ecosystem.config.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "nanami-web",
|
||||
script: "server.js",
|
||||
cwd: path.join(__dirname, ".next", "standalone"),
|
||||
exec_mode: "fork",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
PORT: 3000,
|
||||
HOSTNAME: "0.0.0.0",
|
||||
},
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
max_memory_restart: "512M",
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user