/**
 *
 * PM2 的配置文件 切换到项目根目录 执行: pm2 start 可以直接启动项目
 */
module.exports = {
    apps: [
        {
            name: "Server",
            script: "./Server.js",
            cwd: "dist/",//当前工作目录
            max_memory_restart: '8G',//超过8G内存重启程序
            node_args: "--max_old_space_size=8192",
            env: {
                NODE_ENV: "production",
            },
            env_development: {
                NODE_ENV: "development",
            }
        },
        {
            name: "App",
            script: "./App.js",
            cwd: "dist/",//当前工作目录
            max_memory_restart: '8G',//超过8G内存重启程序
            node_args: "--max_old_space_size=8192",
            env: {
                NODE_ENV: "production",
            },
            env_development: {
                NODE_ENV: "development",
            }
        }
    ]
};
@@ -453,382 +453,8 @@
   %7D%0A
-        %7D,%0A        %7B%0A            name: %22App%22,%0A            script: %22./App.js%22,%0A            cwd: %22dist/%22,//%E5%BD%93%E5%89%8D%E5%B7%A5%E4%BD%9C%E7%9B%AE%E5%BD%95%0A            max_memory_restart: '8G',//%E8%B6%85%E8%BF%878G%E5%86%85%E5%AD%98%E9%87%8D%E5%90%AF%E7%A8%8B%E5%BA%8F%0A            node_args: %22--max_old_space_size=8192%22,%0A            env: %7B%0A                NODE_ENV: %22production%22,%0A            %7D,%0A            env_development: %7B%0A                NODE_ENV: %22development%22,%0A            %7D%0A
     

add a new app.ts