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
f0b2a02f
Commit
f0b2a02f
authored
Feb 24, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
3b6f7752
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
3_link_config_file_by_name.sh
qa_shell_script/3_link_config_file_by_name.sh
+1
-0
restartJava.sh
qa_shell_script/base_script/restartJava.sh
+2
-2
get_project_config_from_mongo.js
...ell_script/config_server/get_project_config_from_mongo.js
+1
-1
No files found.
qa_shell_script/3_link_config_file_by_name.sh
View file @
f0b2a02f
...
...
@@ -18,6 +18,7 @@ then
sh
$config_server
/show_info.sh
$project
连接配置文件
$desc
$3
project_type
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
type
`
file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
file
=
${
file
:+
"application.properties"
}
echo
"rm -rf /home/quant_group/
${
project
}
/
$file
"
rm
-rf
/home/quant_group/
$project
/
$file
...
...
qa_shell_script/base_script/restartJava.sh
View file @
f0b2a02f
...
...
@@ -70,7 +70,7 @@ max_wait_ack_time=700
ack_phrase
=
"JVM
\
running
\
for"
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
run_command_
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
_
`
run_command_
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
command
`
run_commands
=(
${
run_command_
//|/
}
)
sh
$config_server
/show_info.sh
$project
重新启动
$desc
$ip
cd
$project_path
/
$project
...
...
@@ -107,7 +107,7 @@ mv $project_path/logs/$log_name $project_path/logs/$log_name.$time
command1
=
${
run_commands
[0]//\^/
}
command2
=
${
run_commands
[1]//\^/
}
command
=
`
echo
"
nohup java
$command1
-jar
${
project
}
.jar
$command2
"
|
sed
"s#-Didc=default#-Didc=
$idc
#g"
`
command
=
`
echo
"
$command1
-jar
${
project
}
.jar
$command2
"
|
sed
"s#-Didc=default#-Didc=
$idc
#g"
`
echo
$command
$command
>
/dev/null 2>&1 &
echo
"日志名称:
$log_name
"
...
...
qa_shell_script/config_server/get_project_config_from_mongo.js
View file @
f0b2a02f
...
...
@@ -11,7 +11,7 @@ var param = {
attr
:
""
}
projects
=
String
(
execSync
(
`curl -s http://1
27.0.0.1
:10088/config_server/get_project_config_from_db`
))
projects
=
String
(
execSync
(
`curl -s http://1
92.168.4.3
:10088/config_server/get_project_config_from_db`
))
projects
=
JSON
.
parse
(
projects
)
// console.log(typeof(projects))
...
...
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