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
738c95b5
Commit
738c95b5
authored
Jan 07, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c6e40d80
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
2_build_java.sh
sh-utils/center/2_build_java.sh
+2
-2
4_java_restart.sh
sh-utils/center/4_java_restart.sh
+1
-1
java_start.sh
sh-utils/worker/java_start.sh
+2
-2
other_restart.sh
sh-utils/worker/other_restart.sh
+3
-3
No files found.
sh-utils/center/2_build_java.sh
View file @
738c95b5
...
@@ -19,7 +19,7 @@ then
...
@@ -19,7 +19,7 @@ then
suffix
=
''
suffix
=
''
echo
"skip get suffix"
echo
"skip get suffix"
else
else
suffix
=
$((${
host
:10
}
+
1
))
suffix
=
$((${
host
:10
}))
echo
$host
$suffix
echo
$host
$suffix
fi
fi
...
@@ -60,7 +60,7 @@ if [[ "$module" = "du-jiang-yan" ]]; then
...
@@ -60,7 +60,7 @@ if [[ "$module" = "du-jiang-yan" ]]; then
fi
fi
echo
"mvn clean package -P
${
config_profile
}
-Dmaven.test.skip=true"
echo
"mvn clean package -P
${
config_profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
config_profile
}
-Dmaven
.test.skip
=
true
-X
mvn clean package
-P
${
config_profile
}
-Dmaven
.test.skip
=
true
mkdir
-p
/home/quant_group/deploy_backup
mkdir
-p
/home/quant_group/deploy_backup
\c
p
-f
target/
*
.jar /home/quant_group/deploy_backup/
\c
p
-f
target/
*
.jar /home/quant_group/deploy_backup/
...
...
sh-utils/center/4_java_restart.sh
View file @
738c95b5
...
@@ -15,7 +15,7 @@ port=22
...
@@ -15,7 +15,7 @@ port=22
user
=
"root"
user
=
"root"
password
=
"!QAZ2wsx"
password
=
"!QAZ2wsx"
package_path
=
"/home/quant_group/
${
module_name
}
"
package_path
=
"/home/quant_group/
${
module_name
}
"
shutils_path
=
"/home/quant_group/
test
-utils/sh-utils"
shutils_path
=
"/home/quant_group/
qa-deploy
-utils/sh-utils"
ack_phrase
=
"Started
\
Bootstrap"
ack_phrase
=
"Started
\
Bootstrap"
max_wait_log_generate_time
=
50
max_wait_log_generate_time
=
50
...
...
sh-utils/worker/java_start.sh
View file @
738c95b5
...
@@ -12,8 +12,8 @@ echo "cd /home/quant_group/${module_name}/"
...
@@ -12,8 +12,8 @@ echo "cd /home/quant_group/${module_name}/"
cd
/home/quant_group/
${
module_name
}
/
cd
/home/quant_group/
${
module_name
}
/
if
[[
"
${
re_load_config
}
"
=
true
]]
;
then
if
[[
"
${
re_load_config
}
"
=
true
]]
;
then
web_no
=
$((${
worker_host
:10
}))
web_no
=
$((${
worker_host
:10
}))
basic_no
=
$((${
worker_host
:10
}
+
1
))
basic_no
=
$((${
worker_host
:10
}))
mysql_no
=
$((${
worker_host
:10
}
+
2
))
mysql_no
=
$((${
worker_host
:10
}))
echo
"java_start Run
${
module_name
}
start.sh on
${
worker_host
}
, basic_no is
${
basic_no
}
, mysql_no is
${
mysql_no
}
"
echo
"java_start Run
${
module_name
}
start.sh on
${
worker_host
}
, basic_no is
${
basic_no
}
, mysql_no is
${
mysql_no
}
"
...
...
sh-utils/worker/other_restart.sh
View file @
738c95b5
...
@@ -6,10 +6,10 @@ re_load_config=$3
...
@@ -6,10 +6,10 @@ re_load_config=$3
echo
"[params] module_name:
$1
, worker_host:
$2
, re_load_config:
$3
"
echo
"[params] module_name:
$1
, worker_host:
$2
, re_load_config:
$3
"
utils_path
=
"/home/quant_group/
test
-utils"
utils_path
=
"/home/quant_group/
qa-deploy
-utils"
basic_no
=
$((${
worker_host
:10
}
+
1
))
basic_no
=
$((${
worker_host
:10
}))
mysql_no
=
$((${
worker_host
:10
}
+
2
))
mysql_no
=
$((${
worker_host
:10
}))
mkdir
-p
/home/quant_group/remote_backup/
${
module_name
}
mkdir
-p
/home/quant_group/remote_backup/
${
module_name
}
rm
-rf
/home/quant_group/remote_backup/
${
module_name
}
rm
-rf
/home/quant_group/remote_backup/
${
module_name
}
...
...
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