This commit is contained in:
Egor Matveev 2022-03-01 17:14:02 +03:00
parent 882ed0bace
commit 9297b0605f
3 changed files with 14 additions and 13 deletions

View File

@ -13,7 +13,7 @@ build:
# before_script:
# - docker login -u mathwave -p $DOCKERHUB_PASSWORD
script:
- docker build --cache-from=mathwave/sprint-repo:sprint -t mathwave/sprint-repo:sprint .
- docker build -t mathwave/sprint-repo:sprint .
# - docker push mathwave/sprint-repo:sprint
.deploy:

View File

@ -165,6 +165,7 @@ CONSTS = {
"ok_status": "OK",
}
if not DEBUG:
sentry_sdk.init(
dsn="https://bd56bba96dbe4017a792810a8be6cfc1@o1155463.ingest.sentry.io/6235928",
integrations=[DjangoIntegration()],

View File

@ -23,7 +23,7 @@ for v in dir(Main.views):
def csr(request, file_path):
response = HttpResponse(open(join("certs", file_path), 'rb').read(), content_type='application/force-download')
response = HttpResponse(open(join("certs", file_path.lower()), 'rb').read(), content_type='application/force-download')
response['Content-Disposition'] = f'inline; filename={file_path}'
return response