Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
Details
Activity
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
Script
install.api
Commits
b150df9c
Commit
b150df9c
authored
Mar 24, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用修改和远程DB配置
parent
0eae11bf
Pipeline
#21504
passed with stage
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
conncetion_service.py
app/conncetion/conncetion_service.py
+5
-0
No files found.
app/conncetion/conncetion_service.py
View file @
b150df9c
...
...
@@ -224,6 +224,11 @@ values
import
os
from
static_file
import
profile_dir
if
param
.
get
(
'project_no'
)
is
None
or
param
.
get
(
'db_ip'
)
is
None
or
param
.
get
(
'db_port'
)
is
None
or
\
param
.
get
(
'db_password'
)
is
None
or
param
.
get
(
'mes_db_name'
)
is
None
\
or
param
.
get
(
'tiip_db_name'
)
is
None
or
param
.
get
(
'db_user'
)
is
None
:
raise
HSException
(
'以上参数全部必填'
)
remote_db_info_path
=
os
.
path
.
join
(
profile_dir
,
'huansi_server.sh'
)
# 写入
with
open
(
remote_db_info_path
,
"w"
)
as
f
:
...
...
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