1 | let config = {
|
2 | /**
|
3 | * Application configuration section
|
4 | * http://pm2.keymetrics.io/docs/usage/application-declaration/
|
5 | */
|
6 | "apps" : [
|
7 | {
|
8 | "name" : "Chick_IOS_1",
|
9 | "script" : "facade/start.js",
|
10 | "cwd" : "./", // pm2运行目录相对main.js的路径
|
11 | //"out_file" : "./logs/ios1/app-out.log", // 普通日志路径
|
12 | "error_file" : "./logs/ios1/app-err.log", // 错误日志路径
|
13 | "env": {
|
14 | "NODE_ENV": "production",
|
15 | "sys":{
|
16 | "serverType": "IOS",
|
17 | "serverId": 1,
|
18 | "portal": true //指示该服务器兼任门户
|
19 | }
|
20 | }
|
21 | }
|
22 | ],
|
23 |
|
24 | deploy : {
|
25 | production : {
|
26 | user : 'node',
|
27 | host : '127.0.0.1',
|
28 | ref : 'origin/master',
|
29 | repo : 'git@github.com:gamecloud.git',
|
30 | path : '',
|
31 | 'post-deploy' : 'npm install && pm2 reload gameconfig.js --env production'
|
32 | }
|
33 | }
|
34 | }
|
35 |
|
36 | module.exports = config; |
\ | No newline at end of file |