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
98b5be5b
Commit
98b5be5b
authored
Apr 08, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复报错
parent
d73148cb
Pipeline
#22223
failed with stage
in 11 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
application_service.py
app/application/application_service.py
+1
-2
__init__.py
huansi_utils/webapi/__init__.py
+1
-1
startup.py
startup.py
+1
-1
No files found.
app/application/application_service.py
View file @
98b5be5b
...
...
@@ -10,7 +10,6 @@ from app.conncetion.conncetion_service import ConnectionService
from
app.utils.common_tools
import
CommonTools
from
app.utils.db_tools
import
db_driver
from
flask_app
import
git_path
,
repo
from
huansi_utils.common.string
import
between_string
from
huansi_utils.exception.exception
import
HSException
...
...
@@ -88,7 +87,7 @@ where B.default_version=1'''
:param json:
:return:
'''
#
CommonTools.validate_runner_is_install()
CommonTools
.
validate_runner_is_install
()
self
.
checkout
(
project_no
)
compose_content
=
self
.
get_compose_content
()
...
...
huansi_utils/webapi/__init__.py
View file @
98b5be5b
...
...
@@ -164,7 +164,7 @@ class WebApi(object):
raise
NotAcceptable
()
if
mediatype
in
self
.
representations
:
# 当被是别称成浏览器访问的试试,吧mediatype类型装换为json格式,避免在浏览器上乱码
if
mediatype
==
'text/html'
:
if
mediatype
==
'text/html'
and
data
:
if
'<html>'
in
data
and
'</html>'
in
data
:
pass
else
:
...
...
startup.py
View file @
98b5be5b
...
...
@@ -11,4 +11,4 @@ _route_register_instance.init_app(global_app)
'''新的一套API运行方式'''
if
__name__
==
'__main__'
:
global_app
.
run
(
host
=
"0.0.0.0"
,
port
=
int
(
global_app
.
config
.
get
(
'IP_PORT'
))
or
5000
,
debug
=
Fals
e
)
global_app
.
run
(
host
=
"0.0.0.0"
,
port
=
int
(
global_app
.
config
.
get
(
'IP_PORT'
))
or
5000
,
debug
=
Tru
e
)
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