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
c67903f8
Commit
c67903f8
authored
Mar 01, 2017
by
智勇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitabc.xyqb.com/QA/qa-deploy-utils
parents
22e754db
427ac861
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
114 additions
and
83 deletions
+114
-83
.gitignore
.gitignore
+1
-0
5_restart_by_name.sh
qa_shell_script/5_restart_by_name.sh
+17
-13
5_restart_by_type.sh
qa_shell_script/5_restart_by_type.sh
+17
-12
6_start_by_name.sh
qa_shell_script/6_start_by_name.sh
+17
-13
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+41
-40
exception_sub_shell.sh
qa_shell_script/exception_sub_shell.sh
+20
-5
initial_mq.sh
qa_shell_script/rabbitmq/initial_mq.sh
+1
-0
No files found.
.gitignore
0 → 100644
View file @
c67903f8
/qa_shell_script/TEMP/*
qa_shell_script/5_restart_by_name.sh
View file @
c67903f8
...
@@ -71,21 +71,25 @@ function restartNodeProject()
...
@@ -71,21 +71,25 @@ function restartNodeProject()
{
{
project
=
$1
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
stop_command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command2
`
sh
$config_server
/show_info.sh
$project
重新启动
$desc
sh
$config_server
/show_info.sh
$project
重新启动
$desc
cd
$project_path
/
$project
cd
$project_path
/
$project
$stop_command
forever stop
$project
# forever stop $project
forever stop
$project
-www
# forever stop $project-www
setup_path_temp
=
`
find ./
-maxdepth
2
-path
"./node_modules"
-prune
-o
-type
f
-name
"app.js"
-print
`
# pm2 stop $project
echo
"------setup_path_temp:
$setup_path_temp
"
start_command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
`
$start_command
echo
`
forever start
-a
-s
--uid
$project
${
setup_path_temp
}
`
# setup_path_temp=`find ./ -maxdepth 2 -path "./node_modules" -prune -o -type f -name "app.js" -print`
# echo "------setup_path_temp:$setup_path_temp"
setup_path_temp_for_appbackent
=
`
find ./
-maxdepth
2
-path
"./node_modules"
-prune
-o
-type
f
-name
"www"
-print
`
#
if
[
-n
"
$setup_path_temp_for_appbackent
"
]
;
then
# echo `forever start -a -s --uid $project ${setup_path_temp}`
echo
"-----project:
$project
while be run command: python
$python_project_path
--mode=beta --port=
$port
> /dev/null 2>&1 &"
#
echo
`
forever start
-a
-s
--uid
$project
-www
${
setup_path_temp_for_appbackent
}
`
# setup_path_temp_for_appbackent=`find ./ -maxdepth 2 -path "./node_modules" -prune -o -type f -name "www" -print`
fi
# if [ -n "$setup_path_temp_for_appbackent" ];then
# echo "-----project:$project while be run command: python $python_project_path --mode=beta --port=$port > /dev/null 2>&1 &"
# echo `forever start -a -s --uid $project-www ${setup_path_temp_for_appbackent}`
# fi
}
}
function
restartPythonProject
()
function
restartPythonProject
()
...
...
qa_shell_script/5_restart_by_type.sh
View file @
c67903f8
...
@@ -67,21 +67,26 @@ function restartNodeProject()
...
@@ -67,21 +67,26 @@ function restartNodeProject()
for
project
in
${
projects
[@]
}
for
project
in
${
projects
[@]
}
do
do
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
stop_command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command2
`
sh
$config_server
/show_info.sh
$project
重新启动
$desc
sh
$config_server
/show_info.sh
$project
重新启动
$desc
cd
$project_path
/
$project
cd
$project_path
/
$project
forever stop
$project
$stop_command
forever stop
$project
-www
# forever stop $project
setup_path_temp
=
`
find ./
-maxdepth
2
-path
"./node_modules"
-prune
-o
-type
f
-name
"app.js"
-print
`
# forever stop $project-www
echo
"------setup_path_temp:
$setup_path_temp
"
# pm2 stop $project
start_command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
`
echo
`
forever start
-a
-s
--uid
$project
${
setup_path_temp
}
`
$start_command
# setup_path_temp=`find ./ -maxdepth 2 -path "./node_modules" -prune -o -type f -name "app.js" -print`
setup_path_temp_for_appbackent
=
`
find ./
-maxdepth
2
-path
"./node_modules"
-prune
-o
-type
f
-name
"www"
-print
`
# echo "------setup_path_temp:$setup_path_temp"
if
[
-n
"
$setup_path_temp_for_appbackent
"
]
;
then
#
echo
"-----project:
$project
while be run command: python
$python_project_path
--mode=beta --port=
$port
> /dev/null 2>&1 &"
# echo `forever start -a -s --uid $project ${setup_path_temp}`
echo
`
forever start
-a
-s
--uid
$project
-www
${
setup_path_temp_for_appbackent
}
`
#
fi
# setup_path_temp_for_appbackent=`find ./ -maxdepth 2 -path "./node_modules" -prune -o -type f -name "www" -print`
# if [ -n "$setup_path_temp_for_appbackent" ];then
# echo "-----project:$project while be run command: python $python_project_path --mode=beta --port=$port > /dev/null 2>&1 &"
# echo `forever start -a -s --uid $project-www ${setup_path_temp_for_appbackent}`
# fi
done
done
}
}
...
...
qa_shell_script/6_start_by_name.sh
View file @
c67903f8
...
@@ -46,21 +46,25 @@ function restartNodeProject()
...
@@ -46,21 +46,25 @@ function restartNodeProject()
{
{
project
=
$1
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
stop_command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command2
`
sh
$config_server
/show_info.sh
$project
重新启动
$desc
sh
$config_server
/show_info.sh
$project
重新启动
$desc
cd
$project_path
/
$project
cd
$project_path
/
$project
$stop_command
forever stop
$project
# forever stop $project
forever stop
$project
-www
# forever stop $project-www
setup_path_temp
=
`
find ./
-maxdepth
2
-path
"./node_modules"
-prune
-o
-type
f
-name
"app.js"
-print
`
# pm2 stop $project
echo
"------setup_path_temp:
$setup_path_temp
"
start_command
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
`
$start_command
echo
`
forever start
-a
-s
--uid
$project
${
setup_path_temp
}
`
# setup_path_temp=`find ./ -maxdepth 2 -path "./node_modules" -prune -o -type f -name "app.js" -print`
# echo "------setup_path_temp:$setup_path_temp"
setup_path_temp_for_appbackent
=
`
find ./
-maxdepth
2
-path
"./node_modules"
-prune
-o
-type
f
-name
"www"
-print
`
#
if
[
-n
"
$setup_path_temp_for_appbackent
"
]
;
then
# echo `forever start -a -s --uid $project ${setup_path_temp}`
echo
"-----project:
$project
while be run command: python
$python_project_path
--mode=beta --port=
$port
> /dev/null 2>&1 &"
#
echo
`
forever start
-a
-s
--uid
$project
-www
${
setup_path_temp_for_appbackent
}
`
# setup_path_temp_for_appbackent=`find ./ -maxdepth 2 -path "./node_modules" -prune -o -type f -name "www" -print`
fi
# if [ -n "$setup_path_temp_for_appbackent" ];then
# echo "-----project:$project while be run command: python $python_project_path --mode=beta --port=$port > /dev/null 2>&1 &"
# echo `forever start -a -s --uid $project-www ${setup_path_temp_for_appbackent}`
# fi
}
}
function
restartPythonProject
()
function
restartPythonProject
()
...
...
qa_shell_script/config_server/get_project_config.js
View file @
c67903f8
This diff is collapsed.
Click to expand it.
qa_shell_script/exception_sub_shell.sh
View file @
c67903f8
...
@@ -37,15 +37,30 @@ function tranceConfig()
...
@@ -37,15 +37,30 @@ function tranceConfig()
}
}
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.13"
"xyqb-mall.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.13" "xyqb-mall.properties"
tranceConfig java
"sms.is.debug=1"
"sms.is.debug=0"
"192.168.4.13"
"*.properties"
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.151"
"xyqb-mall.properties"
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.151"
"xyqb-mall.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.152" "xyqb-mall.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.152" "xyqb-mall.properties"
#tranceConfig java "192.168.4.3" "192.168.4.17" "192.168.4.17" "*"
#tranceConfig java "192.168.4.3" "192.168.4.17" "192.168.4.17" "*"
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "xyqb.properties"
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "xyqb.properties"
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "di-ting.properties"
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "di-ting.properties"
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
tranceConfig node
"192.168.4.3"
"192.168.4.107"
"192.168.4.12"
"AppBackend.js"
#tranceConfig node "192.168.4.3" "192.168.4.107" "192.168.4.12" "AppBackend.js"
tranceConfig java
"sms.is.debug=1"
"sms.is.debug=0"
"192.168.4.151"
"*.properties"
tranceConfig java
"xyqb.is.debug=1"
"xyqb.is.debug=0"
"192.168.4.151"
"xyqb.properties"
tranceConfig java
"xyqb.is.debug=1"
"xyqb.is.debug=0"
"192.168.4.151"
"xyqb.properties"
tranceConfig java
"sms.is.debug=1"
"sms.is.debug=0"
"192.168.4.12"
"*.properties"
#tranceConfig ui "7047" "12047" "192.168.4.12" "merchant-op-ui.js"
tranceConfig node
"d45o0qd"
"5exp2xo"
"192.168.4.152"
"op-api.js"
tranceConfig java
"7007"
"1507"
"192.168.4.15"
"gu-bei.properties"
qa_shell_script/rabbitmq/initial_mq.sh
View file @
c67903f8
...
@@ -83,4 +83,5 @@ add_queues mall refund
...
@@ -83,4 +83,5 @@ add_queues mall refund
add_queues mall refundFeed
add_queues mall refundFeed
add_queues financial_system refundInfo
add_queues financial_system refundInfo
add_queues bt_loan bt_loan_queue
add_queues bt_loan bt_loan_queue
add_queues financial_system save_redpacket
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