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
0d0c7d49
Commit
0d0c7d49
authored
Oct 13, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
20da52dd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
check.sh
qa_shell_script/check/check.sh
+8
-1
start_all.sh
qa_shell_script/redis_script/start_all.sh
+0
-0
wechat_make.sh
qa_shell_script/special_env_make/wechat_make.sh
+3
-3
No files found.
qa_shell_script/check/check.sh
100644 → 100755
View file @
0d0c7d49
...
@@ -70,7 +70,13 @@ function check(){
...
@@ -70,7 +70,13 @@ function check(){
function
info
(){
function
info
(){
echo
"echo -e '
\0
33[31m ----
\0
33[0m
\t\t\t
|
\t
$1
' "
>>
$servicetatus
process
=
`
ps
-ef
|grep
$1
|grep
-v
grep
|wc
-l
`
if
[
$process
-eq
0
]
;
then
_status
=
'\033[31m stop \033[0m'
else
_status
=
'\033[32m start \033[0m'
fi
echo
"echo -e '
${
_status
}
\t\t\t
|
\t
$1
' "
>>
$servicetatus
}
}
rm
-rf
$servicetatus
rm
-rf
$servicetatus
...
@@ -84,6 +90,7 @@ projectStr=`node /home/qa-deploy-utils/qa_shell_script/check/project_item.js`
...
@@ -84,6 +90,7 @@ projectStr=`node /home/qa-deploy-utils/qa_shell_script/check/project_item.js`
for
line
in
${
projectStr
[@]
}
;
do
for
line
in
${
projectStr
[@]
}
;
do
echo
"check
${
line
//|@|/
}
$1
"
check
${
line
//|@|/
}
$1
check
${
line
//|@|/
}
$1
done
done
...
...
qa_shell_script/redis_script/start_all.sh
100644 → 100755
View file @
0d0c7d49
File mode changed from 100644 to 100755
qa_shell_script/special_env_make/wechat_make.sh
View file @
0d0c7d49
...
@@ -23,9 +23,9 @@ expect -c "
...
@@ -23,9 +23,9 @@ expect -c "
set timeout 10
set timeout 10
spawn ssh root@192.168.4.3
spawn ssh root@192.168.4.3
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
sed -i
\\\"
N;s#
$source_str
#
$target_str
#g
\\\
"
$base_path
/
$ip_host
/
$type_
/
$file_name
\r\"
send
\"
sed -i
"
s#
$source_str
#$target_str#g
" $base_path/$ip_host/$type_/$file_name\r\"
expect
\"
]
#\"
expect
\"
]
#\"
send
\"
sed -i
\\\"
N;s#
$source_str
#
$target_str
#g
\\\
"
$base_path
/
$ip_host
/public/
$type_
/
$file_name
\r\"
send
\"
sed
-i
"s#
$source_str
#
$target_str
#g
"
$base_path
/
$ip_host
/public/
$type_
/
$file_name
\r\"
expect
\"
]
#\"
expect
\"
]
#\"
send
\"
exit
\r\"
send
\"
exit
\r\"
expect eof
;
"
expect eof
;
"
...
@@ -33,8 +33,8 @@ expect -c "
...
@@ -33,8 +33,8 @@ expect -c "
}
}
echo "
部署时间大约需要10分钟,请确保重启应用时,配置文件不再更改。。。
"
echo "
部署时间大约需要10分钟,请确保重启应用时,配置文件不再更改。。。
"
echo "
step 1 更改配置文件
"
echo "
step 1 更改配置文件
"
tranceConfig java
"wechat.secret=.*"
"wechat.secret=
$dev_secury
"
"
$evn_ip
"
"xyqb-user2.properties"
tranceConfig java "
wechat.appid
=
.
*
" "
wechat.appid
=
$dev_appid
" "
$evn_ip
" "
xyqb-user2.properties
"
tranceConfig java "
wechat.appid
=
.
*
" "
wechat.appid
=
$dev_appid
" "
$evn_ip
" "
xyqb-user2.properties
"
tranceConfig java "
wechat.secret
=
.
*
" "
wechat.secret
=
$dev_secury
" "
$evn_ip
" "
xyqb-user2.properties
"
tranceConfig java "
h5-ui.url
=
.
*
" "
h5-ui.url
=
http://
$pay_url
" "
$evn_ip
" "
xyqb.properties
"
tranceConfig java "
h5-ui.url
=
.
*
" "
h5-ui.url
=
http://
$pay_url
" "
$evn_ip
" "
xyqb.properties
"
tranceConfig ui "
weixinAppid:.
*
" "
weixinAppid:
'$dev_appid'
" "
$evn_ip
" "
xyqb-user-ui.js
"
tranceConfig ui "
weixinAppid:.
*
" "
weixinAppid:
'$dev_appid'
" "
$evn_ip
" "
xyqb-user-ui.js
"
tranceConfig ui "
wechattest.xyqb.com
" "
$user_url
" "
$evn_ip
" "
xyqb-user-ui.js
"
tranceConfig ui "
wechattest.xyqb.com
" "
$user_url
" "
$evn_ip
" "
xyqb-user-ui.js
"
...
...
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