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
b0c19ede
Commit
b0c19ede
authored
Aug 29, 2021
by
温海元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add qa-platform deploy.sh
parent
3cc4bad2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
15 deletions
+30
-15
deploy.sh
qa_shell_script/qa_platform/deploy.sh
+30
-0
deploy.sh
qa_shell_script/qa_platform_ui/deploy.sh
+0
-15
No files found.
qa_shell_script/qa_platform/deploy.sh
0 → 100644
View file @
b0c19ede
project_name
=
$1
target_dir
=
"/home/quant_group/
${
project_name
}
"
if
[
!
-d
"
$project_name
"
]
;
then
echo
"not exist"
git clone
${
git_path
}
cd
./
${
project_name
}
else
echo
"exist"
cd
./
${
project_name
}
git pull
fi
echo
"部署项目开始"
if
[
"
$project_name
"
=
"qa-platfrom-ui"
]
;
then
echo
"这是一个UI项目"
cd
${
target_dir
}
npm
install
npm run build
echo
"done"
else
echo
"这是JAVA项目"
cd
${
target_dir
}
mvn clean package
-Ptest
-Dmaven
.test.skip
=
true
supervisorctl restart
$project_name
echo
"done"
fi
qa_shell_script/qa_platform_ui/deploy.sh
deleted
100644 → 0
View file @
3cc4bad2
project_name
=
$1
# tag=$2
target_user
=
'root'
target_ip
=
'172.29.2.3'
target_dir
=
"/home/quant_group/
${
project_name
}
"
deploy_dir
=
"/home/quant_group/qa-deploy-utils"
ssh
${
target_user
}
@
${
target_ip
}
"cd
${
target_dir
}
"
ssh
${
target_user
}
@
${
target_ip
}
"git pull"
ssh
${
target_user
}
@
${
target_ip
}
"npm install"
ssh
${
target_user
}
@
${
target_ip
}
"npm run build"
ssh
${
target_user
}
@
${
target_ip
}
"supervisorctl restart
${
project_name
}
"
echo
"done"
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