Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wp-mat-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
wp-mat-server
Commits
04e7fc93
Commit
04e7fc93
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Separate package with the uwsgi entry point
parent
e2ff94c4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#54123
passed
1 year ago
Stage: test
Stage: build
Stage: release
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
mat_api_server/api.py
+0
-8
0 additions, 8 deletions
mat_api_server/api.py
mat_api_server/wsgi.py
+11
-0
11 additions, 0 deletions
mat_api_server/wsgi.py
with
12 additions
and
9 deletions
Dockerfile
+
1
−
1
View file @
04e7fc93
...
@@ -27,4 +27,4 @@ RUN cd /tmp/wheels \
...
@@ -27,4 +27,4 @@ RUN cd /tmp/wheels \
ENV
VIRTUALENV=/virtualenv
ENV
VIRTUALENV=/virtualenv
ENV
UWSGI_ENGINE=threads
ENV
UWSGI_ENGINE=threads
ENV
WSGI_APP=mat_api_server.
api:create_app
ENV
WSGI_APP=mat_api_server.
wsgi:application
This diff is collapsed.
Click to expand it.
mat_api_server/api.py
+
0
−
8
View file @
04e7fc93
...
@@ -9,14 +9,6 @@ import tempfile
...
@@ -9,14 +9,6 @@ import tempfile
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
def
create_app
():
# Simple config from environment variables.
app
.
config
.
update
({
'
UPLOAD_DIR
'
:
os
.
getenv
(
'
UPLOAD_DIR
'
),
})
return
app
def
get_parser_by_mime_type
(
path
,
mime_type
):
def
get_parser_by_mime_type
(
path
,
mime_type
):
for
parser_class
in
parser_factory
.
_get_parsers
():
for
parser_class
in
parser_factory
.
_get_parsers
():
if
mime_type
in
parser_class
.
mimetypes
:
if
mime_type
in
parser_class
.
mimetypes
:
...
...
This diff is collapsed.
Click to expand it.
mat_api_server/wsgi.py
0 → 100644
+
11
−
0
View file @
04e7fc93
import
os
from
.api
import
app
# Simple config from environment variables.
app
.
config
.
update
({
'
UPLOAD_DIR
'
:
os
.
getenv
(
'
UPLOAD_DIR
'
),
})
application
=
app
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment