Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
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
qa-deploy-utils
Commits
371d9592
Commit
371d9592
authored
Feb 23, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加msg-center的部署脚本,脚本会对短信中心代码进行修改
parent
c4ac639e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
1 deletion
+44
-1
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+4
-1
msg_center.sh
qa_shell_script/special_project/msg_center.sh
+7
-0
remote_excute_msg_center.sh
qa_shell_script/special_project/remote_excute_msg_center.sh
+33
-0
No files found.
qa_shell_script/config_server/get_project_config.js
View file @
371d9592
...
...
@@ -92,6 +92,7 @@ new pClass().init(true, "node", "9050", "op-api", "OP", null, "src/config.js", n
//python
new
pClass
().
init
(
true
,
"
python
"
,
"
7022
"
,
"
qin-qiong
"
,
"
QG
"
,
null
,
"
config/beta/config.properties
"
,
null
,
null
,
1
,
"
加密解密-server
"
);
new
pClass
().
init
(
true
,
"
python
"
,
"
7033
"
,
"
xyqb-query
"
,
"
QG
"
,
null
,
"
server/config/beta/config.ini
"
,
null
,
null
,
1
,
"
query-server
"
);
new
pClass
().
init
(
false
,
"
python
"
,
"
7027
"
,
"
msg-center
"
,
"
QG
"
,
null
,
"
server/config/beta/config.ini
"
,
null
,
null
,
1
,
"
短信中心-以前的sms-center
"
);
var
temp
=
""
;
...
...
@@ -109,8 +110,10 @@ process.argv.forEach(function(val, index, array) {
function
getListAttr
(
projects
,
attr
)
{
var
list
=
[];
for
(
var
i
=
0
;
i
<
projects
.
length
;
i
++
)
{
if
(
projects
[
i
].
is_active
){
list
.
push
(
projects
[
i
][
attr
])
}
}
return
list
.
join
(
"
"
);
}
var
configFunction
=
function
()
{};
...
...
qa_shell_script/special_project/msg_center.sh
0 → 100755
View file @
371d9592
#!/bin/bash
project_path
=
/home/quant_group/msg-center
config_file
=
/home/config_files/special
cp
$config_file
/msg_center_white_list.py
$project_path
/server/white_list.py
sed
-i
"s/import json/import json
\n
from white_list import white_list/g"
$project_path
/server/mq/
*
.py
sed
-i
"s/msg = json.loads(body,
\"
utf8
\"
)/msg = json.loads(body,
\"
utf8
\"
)
\n
if msg[
\"
source
\"
] not in white_list:
\n
logging.info(
\"
IP:%s地址不再白名单之列,请联系管理员开通白名单
\"
, msg[
\"
source
\"
])
\n
self.acknowledge_message(basic_deliver.delivery_tag)
\n
return/g"
$project_path
/server/mq/
*
.py
\ No newline at end of file
qa_shell_script/special_project/remote_excute_msg_center.sh
0 → 100755
View file @
371d9592
#!/bin/bash
ip_last
=
$1
project_name
=
$2
branch_name
=
$3
public_ip
=
$4
set timeout
1200
ip
=
192.168.4.
$ip_last
echo
"参数为:
#init_shell_script:
${
init_shell_script
}
ip :
${
ip
}
project_name :
${
project_name
}
branch_name :
${
branch_name
}
public_ip :
${
public_ip
}
"
expect
-c
"
set timeout 10
spawn ssh root@
${
ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
send
\"
sh deploy_project_by_name.sh
$project_name
$branch_name
$public_ip
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
sh special_project/msg_center.sh
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
sh 5_restart_by_name.sh
$project_name
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
exit
\r\"
expect eof;"
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