comty/ecosystem.config.js
2023-06-02 03:07:55 +00:00

55 lines
1.4 KiB
JavaScript

module.exports = {
apps: [
{
name: "main_api",
script: "./dist/index.js",
instances: "max",
exec_mode: "cluster",
env: {
"NODE_ENV": "production",
},
cwd: "./packages/server"
},
{
name: "music_api",
script: "./dist/index.js",
instances: "max",
exec_mode: "cluster",
env: {
"NODE_ENV": "production",
},
cwd: "./packages/music_server"
},
{
name: "file_api",
script: "./dist/index.js",
instances: "max",
exec_mode: "cluster",
env: {
"NODE_ENV": "production",
},
cwd: "./packages/file_server"
},
{
name: "marketplace_api",
script: "./dist/index.js",
instances: "max",
exec_mode: "cluster",
env: {
"NODE_ENV": "production",
},
cwd: "./packages/marketplace_server"
},
{
name: "chat_api",
script: "./dist/index.js",
instances: "max",
exec_mode: "cluster",
env: {
"NODE_ENV": "production",
},
cwd: "./packages/chat_server"
}
],
}