Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Import API
Commits
19a0c4dc
Commit
19a0c4dc
authored
Nov 16, 2021
by
Jonas Waeber
Browse files
Remove dependencies on restful flask
parent
260123c7
Pipeline
#37205
passed with stages
in 1 minute and 8 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
import_api_app/wsgi.py
View file @
19a0c4dc
...
...
@@ -19,7 +19,6 @@ from os import environ
from
flasgger
import
Swagger
from
flask
import
send_from_directory
,
redirect
from
flask_restful
import
Api
from
import_api_app.app
import
app
from
import_api_app.helpers.error
import
ImportApiError
...
...
@@ -42,8 +41,6 @@ if __name__ != '__main__':
app
.
logger
=
gunicorn_logger
app
.
logger
.
info
(
'Starting production server'
)
api
=
Api
(
app
)
try
:
app
.
config
[
'import-api-url'
]
=
os
.
environ
[
'IMPORT_API_URL'
]
app
.
config
[
'kafka-broker-url'
]
=
os
.
environ
[
'KAFKA_BOOTSTRAP_SERVERS'
]
...
...
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