Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BlackPearl
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
BlackPearl
Commits
090de391
Commit
090de391
authored
Oct 31, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了config的debugIP管理地址
parent
5666b0d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
main.development.js
config/main.development.js
+6
-2
No files found.
config/main.development.js
View file @
090de391
"
use strict
"
;
process
.
env
.
DEBUG
=
process
.
env
.
DEBUG
||
'
*
'
;
let
env
=
process
.
env
.
BP_ENV
;
const
serverConfig
=
require
(
'
./server.json
'
);
const
makeConfig
=
require
(
'
../src/utils
'
).
makeConfig
;
var
os
=
require
(
'
os
'
);
...
...
@@ -34,6 +34,10 @@ function getIp() {
getIp
();
console
.
log
(
"
配置文件获取IP
"
,
ip
)
let
vhost
=
{};
if
(
env
==
"
debug
"
){
ip
=
"
172.30.199.2
"
}
vhost
[
ip
]
=
'
blackPearl
'
;
let
path
=
{
...
...
@@ -100,7 +104,7 @@ module.exports = makeConfig({
// mongoose 配置
},
api
:
{
'
blackPearl
'
:
'
mongodb://172.30.199.2:27017/blackPearl
'
'
blackPearl
'
:
`mongodb://
${
ip
}
:27017/blackPearl`
}
},
...
...
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