Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
Details
Activity
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
install.api
Commits
7691569c
Commit
7691569c
authored
4 years ago
by
jinkaiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker环境线下老是出现问题,先用代码拉取
parent
4040c332
Pipeline
#25147
passed with stage
in 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
flask_app.py
flask_app.py
+6
-5
No files found.
flask_app.py
View file @
7691569c
...
...
@@ -13,13 +13,14 @@ deploy_repo_path = 'ssh://git@47.110.145.204:2222/hs/deploy.git'
git_path
=
os
.
path
.
join
(
temp_file_dir
,
'deploy'
)
# 初始化git仓库
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
git_path
,
'.git'
)):
repo
=
git
.
Repo
.
clone_from
(
url
=
deploy_repo_path
,
to_path
=
git_path
)
else
:
repo
=
git
.
Repo
(
git_path
)
repo
.
git
.
pull
()
# docker环境线下老是出现问题,先用代码拉取
os
.
system
(
f
'git clone {deploy_repo_path} {git_path}'
)
# repo = git.Repo.clone_from(url=deploy_repo_path, to_path=git_path)
repo
=
git
.
Repo
(
git_path
)
repo
.
git
.
pull
()
class
FlashAppLoader
(
AppLoaderBase
):
...
...
This diff is collapsed.
Click to expand it.
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