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
940b7eb7
Commit
940b7eb7
authored
Dec 13, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~/.pip/pip.conf
parent
7d7f17b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
run.sh
dev/python/run.sh
+25
-1
No files found.
dev/python/run.sh
View file @
940b7eb7
...
...
@@ -43,9 +43,33 @@ tar zxf ${package_path}/dist.tgz -C ${package_path}/
echo
"rm dist.tgz public/dist -rf"
rm
-rf
${
package_path
}
/dist.tgz
echo
"sed domain.com to liangkebang.com"
find
${
package_path
}
/
-type
f
-name
"*.conf"
| xargs
sed
-i
"s#
\.
domain
\.
com#-
$NAMESPACE
.liangkebang.com#g"
find
${
package_path
}
/
-type
f
-name
"*.conf"
| xargs
sed
-i
"s#
\.
xyqb
\.
com#-
$NAMESPACE
.liangkebang.com#g"
echo
"cd /home/qg-xterm/;git pull;cd -"
cd
/home/qg-xterm/
;
git pull
;
cd
-
echo
"node /home/qg-xterm/demo/app.js"
nohup
node /home/qg-xterm/demo/app.js &
echo
"sed port from 8999 to 80"
find
${
package_path
}
/
-type
f
-name
"*.py"
| xargs
sed
-i
"s#8999#80#g"
echo
"prepare ~/.pip/pip.conf"
mkdir
-p
~/.pip/
touch
~/.pip/pip.conf
echo
"[global]"
>>
~/.pip/pip.conf
echo
"index-url=https://pypi.tuna.tsinghua.edu.cn/simple"
>>
~/.pip/pip.conf
echo
"[install]"
>>
~/.pip/pip.conf
echo
"trusted-host=mirrors.aliyun.com"
>>
~/.pip/pip.conf
echo
"pip intall requirements"
pip
install
-r
${
package_path
}
/requirements.txt
echo
"python run.py --mode=beta --port=80"
# python ${package_path}/server/run.py --mode=beta --port=80
python
${
package_path
}
/startup.py
--mode
=
beta
--port
=
80
\ No newline at end of file
nohup
python
${
package_path
}
/startup.py
--mode
=
beta
--port
=
80 &
echo
"frontail logs/*.log -d -n 1000"
frontail ./logs/
*
log
-n
1000
\ 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