Commit 9a4563d8 authored by gengshaojing's avatar gengshaojing

add: 增加pre环境域名

parent dfc262f4
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"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 = {
...@@ -24,5 +26,5 @@ module.exports = { ...@@ -24,5 +26,5 @@ module.exports = {
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