Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
9a4563d8
Commit
9a4563d8
authored
Sep 03, 2021
by
gengshaojing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 增加pre环境域名
parent
dfc262f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
33 deletions
+35
-33
pm2-pre.json
pm2-pre.json
+17
-17
config.js
server/config.js
+18
-16
No files found.
pm2-pre.json
View file @
9a4563d8
...
@@ -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"
}
}
}
}
...
...
server/config.js
View file @
9a4563d8
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
,
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment