Commit 9a4563d8 authored by gengshaojing's avatar gengshaojing

add: 增加pre环境域名

parent dfc262f4
{
"apps": [
{
"name": "opwebservice-preload",
"script": "app.js",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"cwd": "/home/services/op-web-service/htdocs",
"exec_mode": "cluster",
"instances": 0,
"error_file": "/home/services/op-web-service/logs/opwebservice-preload.err.log",
"out_file": "/home/services/op-web-service/logs/opwebservice-preload.out.log",
"max_memory_restart": "1G",
"env": {
"NODE_ENV": "production",
"PORT": "8090"
}
}
]
"apps": [
{
"name": "opwebservice-preload",
"script": "app.js",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"cwd": "/home/services/op-web-service/htdocs",
"exec_mode": "cluster",
"instances": 0,
"error_file": "/home/services/op-web-service/logs/opwebservice-preload.err.log",
"out_file": "/home/services/op-web-service/logs/opwebservice-preload.out.log",
"max_memory_restart": "1G",
"env": {
"NODE_ENV": "preprod",
"PORT": "8090"
}
}
]
}
const env = process.env.NODE_ENV || "development";
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 = {
development: "http://pandora.yidian-inc.com",
test: "http://pandora.yidian-inc.com",
production: "http://pandora.yidian-inc.com"
development: "http://pandora.yidian-inc.com",
test: "http://pandora.yidian-inc.com",
production: "http://pandora.yidian-inc.com",
preprod: "http://pandora.yidian-inc.com",
};
const API_INTERNAL_URI = {
test: "http://bp-dev.ini.yidian-inc.com",
development: "http://bp-test.ini.yidian-inc.com",
production: "http://bp.int.yidian-inc.com"
test: "http://bp-dev.ini.yidian-inc.com",
development: "http://bp-test.ini.yidian-inc.com",
production: "http://bp.int.yidian-inc.com",
preprod: "https://bp.pre.int.yidian-inc.com",
};
module.exports = {
env: env,
port: port,
API_INTERNAL_URI: API_INTERNAL_URI[env],
PANDORA_URI: PANDORA_URI[env],
GOODS_URI: API_INTERNAL_URI[env],
GROUPMEAL_URI: API_INTERNAL_URI[env],
ACTIVITY_URI: API_INTERNAL_URI[env],
WITHDRAWAL_URI: API_INTERNAL_URI[env],
API_YD_LOGIN
env: env,
port: port,
API_INTERNAL_URI: API_INTERNAL_URI[env],
PANDORA_URI: PANDORA_URI[env],
GOODS_URI: API_INTERNAL_URI[env],
GROUPMEAL_URI: API_INTERNAL_URI[env],
ACTIVITY_URI: API_INTERNAL_URI[env],
WITHDRAWAL_URI: API_INTERNAL_URI[env],
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