Commit 9a4563d8 authored by gengshaojing's avatar gengshaojing

add: 增加pre环境域名

parent dfc262f4
{ {
"apps": [ "apps": [
{ {
"name": "opwebservice-preload", "name": "opwebservice-preload",
"script": "app.js", "script": "app.js",
"log_date_format": "YYYY-MM-DD HH:mm Z", "log_date_format": "YYYY-MM-DD HH:mm Z",
"cwd": "/home/services/op-web-service/htdocs", "cwd": "/home/services/op-web-service/htdocs",
"exec_mode": "cluster", "exec_mode": "cluster",
"instances": 0, "instances": 0,
"error_file": "/home/services/op-web-service/logs/opwebservice-preload.err.log", "error_file": "/home/services/op-web-service/logs/opwebservice-preload.err.log",
"out_file": "/home/services/op-web-service/logs/opwebservice-preload.out.log", "out_file": "/home/services/op-web-service/logs/opwebservice-preload.out.log",
"max_memory_restart": "1G", "max_memory_restart": "1G",
"env": { "env": {
"NODE_ENV": "production", "NODE_ENV": "preprod",
"PORT": "8090" "PORT": "8090"
} }
} }
] ]
} }
const env = process.env.NODE_ENV || "development"; const env = process.env.NODE_ENV || "development";
const port = process.env.PORT || 8055; const port = process.env.PORT || 8055;
const API_YD_LOGIN = 'http://web-rest.int.yidian-inc.com/api/v1/pandora/auth' const API_YD_LOGIN = "http://web-rest.int.yidian-inc.com/api/v1/pandora/auth";
const PANDORA_URI = { const PANDORA_URI = {
development: "http://pandora.yidian-inc.com", development: "http://pandora.yidian-inc.com",
test: "http://pandora.yidian-inc.com", test: "http://pandora.yidian-inc.com",
production: "http://pandora.yidian-inc.com" production: "http://pandora.yidian-inc.com",
preprod: "http://pandora.yidian-inc.com",
}; };
const API_INTERNAL_URI = { const API_INTERNAL_URI = {
test: "http://bp-dev.ini.yidian-inc.com", test: "http://bp-dev.ini.yidian-inc.com",
development: "http://bp-test.ini.yidian-inc.com", development: "http://bp-test.ini.yidian-inc.com",
production: "http://bp.int.yidian-inc.com" production: "http://bp.int.yidian-inc.com",
preprod: "https://bp.pre.int.yidian-inc.com",
}; };
module.exports = { module.exports = {
env: env, env: env,
port: port, port: port,
API_INTERNAL_URI: API_INTERNAL_URI[env], API_INTERNAL_URI: API_INTERNAL_URI[env],
PANDORA_URI: PANDORA_URI[env], PANDORA_URI: PANDORA_URI[env],
GOODS_URI: API_INTERNAL_URI[env], GOODS_URI: API_INTERNAL_URI[env],
GROUPMEAL_URI: API_INTERNAL_URI[env], GROUPMEAL_URI: API_INTERNAL_URI[env],
ACTIVITY_URI: API_INTERNAL_URI[env], ACTIVITY_URI: API_INTERNAL_URI[env],
WITHDRAWAL_URI: API_INTERNAL_URI[env], WITHDRAWAL_URI: API_INTERNAL_URI[env],
API_YD_LOGIN API_YD_LOGIN,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment