Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-docker-entrypoints
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
qg-docker-entrypoints
Commits
cdbd1cbb
Commit
cdbd1cbb
authored
Jan 22, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodejs
parent
7ff9636a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
nodejs.sh
tke/nodejs.sh
+44
-0
No files found.
tke/nodejs.sh
0 → 100644
View file @
cdbd1cbb
#!/bin/sh
echo
"start run nodejs"
package_path
=
"/home/quant_group/project"
echo
"NAMESPACE is
$NAMESPACE
"
echo
"cd
${
package_path
}
"
cd
${
package_path
}
echo
"echo host"
echo
192.168.6.13 eos.quantgroups.com
>>
/etc/hosts
echo
192.168.4.117 apollo-dev.quantgroups.com
>>
/etc/hosts
echo
172.20.3.11 sentry.quantgroups.com
>>
/etc/hosts
echo
"tar zxf dist.tgz -C
${
package_path
}
"
tar
zxf
${
package_path
}
/dist.tgz
-C
${
package_path
}
/
echo
"sed domain.com to liangkebang.com"
find
${
package_path
}
/
-type
f
-name
"*.js"
| xargs
sed
-i
"s#
\.
domain
\.
com#-
$NAMESPACE
.liangkebang.com#g"
echo
"sed xyqb.com to liangkebang.com"
find
${
package_path
}
/
-name
"*.js"
| xargs
sed
-i
"s#
\.
xyqb
\.
com#-
$NAMESPACE
.liangkebang.com#g"
echo
"sed q-gp.com to liangkebang.com"
find
${
package_path
}
/
-name
"*.js"
| xargs
sed
-i
"s#
\.
q-gp.
\c
om#-
$NAMESPACE
.liangkebang.com#g"
echo
"rm -rf dist.tgz public/dist "
rm
-rf
${
package_path
}
/dist.tgz
echo
"start cmd from 172.30.220.22:3003"
curl
-s
"http://172.30.220.22:3003/proconfig/get_info?system_name=
${
SYSTEM_NAME
}
&key=start_command"
| sh
echo
"sleep 3"
sleep
3
if
ls
./
*
log 1> /dev/null 2>&1
;
then
echo
"ls -l ./logs"
ls
-l
./logs
else
echo
"files do not exist"
touch
./logs/tmp.log
fi
echo
done
!!!
\ No newline at end of file
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