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
dee05406
Commit
dee05406
authored
Mar 09, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new shell
parent
9369a567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
make_ngrok_yml.sh
qa_shell_script/ngrok/make_ngrok_yml.sh
+44
-0
No files found.
qa_shell_script/ngrok/make_ngrok_yml.sh
0 → 100755
View file @
dee05406
#!/bin/bash
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_shell_path
=
"
$pwd_path
"
config_server
=
"
$pwd_path
/config_server"
filename
=
ngrok_confg.yml
rm
-rf
$filename
echo
"server_addr: ss.xyqb.loan:4443"
>>
$filename
echo
"trust_host_root_certs: false"
>>
$filename
echo
"tunnels:"
>>
$filename
function
addFile
()
{
echo
"
$1
-iplast:"
>>
$filename
echo
" proto:"
>>
$filename
echo
" http:
\"
$2
\"
"
>>
$filename
}
projects
=(
`
node
$config_server
/get_project_config.js
-type
java
-attr
name
`
)
for
project
in
${
projects
[@]
}
do
port
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
prot
`
addFile
$project
$port
done
projects
=(
`
node
$config_server
/get_project_config.js
-type
ui
-attr
name
`
)
for
project
in
${
projects
[@]
}
do
port
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
prot
`
addFile
$project
$port
done
projects
=(
`
node
$config_server
/get_project_config.js
-type
node
-attr
name
`
)
for
project
in
${
projects
[@]
}
do
port
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
prot
`
addFile
$project
$port
done
projects
=(
`
node
$config_server
/get_project_config.js
-type
python
-attr
name
`
)
for
project
in
${
projects
[@]
}
do
port
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
prot
`
addFile
$project
$port
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