{
    "apps": [
        {
            "name": "master",
            "script": "app.ts",
            "args": [
                "serverType=master",
                "id=master-server-1",
                "host=127.0.0.1",
                "port=3005",
                "env=production",
                "mode=stand-alone"
            ],
            "watch": false,
            "out_file": "./logs/master-server-1_app.log",
            "error_file": "./logs/master-server-1_error.log",
            "cwd": "/game-server",
            "merge_logs": true,
            "exec_mode": "fork_mode"
        },
        {
            "name": "connector-server-1",
            "script": "app.ts",
            "args": [
                "env=production",
                "id=connector-server-1",
                "port=4050",
                "host=127.0.0.1",
                "serverType=connector",
                "frontend=true",
                "clientPort=3050"
            ],
            "watch": false,
            "out_file": "./logs/connector-server-1_app.log",
            "error_file": "./logs/connector-server-1_error.log",
            "cwd": "/game-server",
            "merge_logs": true,
            "exec_mode": "fork_mode"
        },
        {
            "name": "connector-server-2",
            "script": "app.ts",
            "args": [
                "env=production",
                "id=connector-server-2",
                "port=4051",
                "host=127.0.0.1",
                "serverType=connector",
                "frontend=true",
                "clientPort=3051"
            ],
            "watch": false,
            "out_file": "./logs/connector-server-2_app.log",
            "error_file": "./logs/connector-server-2_error.log",
            "cwd": "/game-server",
            "merge_logs": true,
            "exec_mode": "fork_mode"
        },
        {
            "name": "connector-server-3",
            "script": "app.ts",
            "args": [
                "env=production",
                "id=connector-server-3",
                "port=4052",
                "host=127.0.0.1",
                "serverType=connector",
                "frontend=true",
                "clientPort=3052"
            ],
            "watch": false,
            "out_file": "./logs/connector-server-3_app.log",
            "error_file": "./logs/connector-server-3_error.log",
            "cwd": "/game-server",
            "merge_logs": true,
            "exec_mode": "fork_mode"
        },
        {
            "name": "chat-server-1",
            "script": "app.ts",
            "args": [
                "env=production",
                "id=chat-server-1",
                "port=6050",
                "host=127.0.0.1",
                "serverType=chat"
            ],
            "watch": false,
            "out_file": "./logs/chat-server-1_app.log",
            "error_file": "./logs/chat-server-1_error.log",
            "cwd": "/game-server",
            "merge_logs": true,
            "exec_mode": "fork_mode"
        },
        {
            "name": "chat-server-2",
            "script": "app.ts",
            "args": [
                "env=production",
                "id=chat-server-2",
                "port=6051",
                "host=127.0.0.1",
                "serverType=chat"
            ],
            "watch": false,
            "out_file": "./logs/chat-server-2_app.log",
            "error_file": "./logs/chat-server-2_error.log",
            "cwd": "/game-server",
            "merge_logs": true,
            "exec_mode": "fork_mode"
        },
        {
            "name": "chat-server-3",
            "script": "app.ts",
            "args": [
                "env=production",
                "id=chat-server-3",
                "port=6052",
                "host=127.0.0.1",
                "serverType=chat"
            ],
            "watch": false,
            "out_file": "./logs/chat-server-3_app.log",
            "error_file": "./logs/chat-server-3_error.log",
            "cwd": "/game-server",
            "merge_logs": true,
            "exec_mode": "fork_mode"
        },
        {
            "name": "gate-server-1",
            "script": "app.ts",
            "args": [
                "env=production",
                "id=gate-server-1",
                "port=undefined",
                "host=127.0.0.1",
                "serverType=gate",
                "frontend=true",
                "clientPort=3014"
            ],
            "watch": false,
            "out_file": "./logs/gate-server-1_app.log",
            "error_file": "./logs/gate-server-1_error.log",
            "cwd": "/game-server",
            "merge_logs": true,
            "exec_mode": "fork_mode"
        }
    ]
}