Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deploy-script
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
script
deploy-script
Commits
4db4a059
Commit
4db4a059
authored
Jul 21, 2021
by
白秀江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project-deploy.sh
parent
9e60dfc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
project-deploy.sh
project-deploy.sh
+4
-4
No files found.
project-deploy.sh
View file @
4db4a059
...
@@ -3,8 +3,8 @@ cd `dirname $0`
...
@@ -3,8 +3,8 @@ cd `dirname $0`
BIN_DIR
=
`
pwd
`
BIN_DIR
=
`
pwd
`
DEPLOY_DIR
=
`
pwd
`
DEPLOY_DIR
=
`
pwd
`
IP
=
$(
echo
$SSH_CONNECTION
|
awk
'{print $3}'
)
_HOST_IP_
=
$(
echo
$SSH_CONNECTION
|
awk
'{print $3}'
)
echo
@@@@@@ip
=
$
IP
@@@@@
echo
@@@@@@ip
=
$
_HOST_IP_
@@@@@
#
#
# $1 方法名 deploy 发布项目
# $1 方法名 deploy 发布项目
...
@@ -75,8 +75,8 @@ function check() {
...
@@ -75,8 +75,8 @@ function check() {
# $3 weight 权重
# $3 weight 权重
#
#
function
weight
()
{
function
weight
()
{
echo
"http://internal.jump.ibreader.com/api/deploy/slb/controlSLB?ipStrList=
$
IP
&vGroupId=
$2
&weight=
$3
"
echo
"http://internal.jump.ibreader.com/api/deploy/slb/controlSLB?ipStrList=
$
_HOST_IP_
&vGroupId=
$2
&weight=
$3
"
curl
"http://internal.jump.ibreader.com/api/deploy/slb/controlSLB?ipStrList=
$
IP
&vGroupId=
$2
&weight=
$3
"
curl
"http://internal.jump.ibreader.com/api/deploy/slb/controlSLB?ipStrList=
$
_HOST_IP_
&vGroupId=
$2
&weight=
$3
"
}
}
# $2 ip
# $2 ip
...
...
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