Cleanup azure settings and docs
This commit is contained in:
parent
c855753c4d
commit
946d5671b8
|
|
@ -3,9 +3,20 @@
|
||||||
This document should help the user with a few commands, how to handle the azure app.
|
This document should help the user with a few commands, how to handle the azure app.
|
||||||
|
|
||||||
|
|
||||||
# Get logs of the container
|
## Get logs of the container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
az webapp log tail --resource-group VBV
|
az webapp log tail --resource-group VBV
|
||||||
|
```
|
||||||
|
|
||||||
|
## Query for logs
|
||||||
|
|
||||||
|
```
|
||||||
|
AppServiceConsoleLogs
|
||||||
|
| extend logLevel = parse_json(ResultDescription).level
|
||||||
|
| where logLevel == "error"
|
||||||
|
| take 10
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 674 KiB |
Binary file not shown.
|
|
@ -10,6 +10,9 @@ from django.views import defaults as default_views
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
from django_ratelimit.exceptions import Ratelimited
|
from django_ratelimit.exceptions import Ratelimited
|
||||||
from graphene_django.views import GraphQLView
|
from graphene_django.views import GraphQLView
|
||||||
|
from wagtail import urls as wagtail_urls
|
||||||
|
from wagtail.admin import urls as wagtailadmin_urls
|
||||||
|
from wagtail.documents import urls as wagtaildocs_urls
|
||||||
|
|
||||||
from vbv_lernwelt.assignment.views import request_assignment_completion_status
|
from vbv_lernwelt.assignment.views import request_assignment_completion_status
|
||||||
from vbv_lernwelt.core.middleware.auth import django_view_authentication_exempt
|
from vbv_lernwelt.core.middleware.auth import django_view_authentication_exempt
|
||||||
|
|
@ -53,9 +56,6 @@ from vbv_lernwelt.importer.views import (
|
||||||
t2l_sync,
|
t2l_sync,
|
||||||
)
|
)
|
||||||
from vbv_lernwelt.notify.views import email_notification_settings
|
from vbv_lernwelt.notify.views import email_notification_settings
|
||||||
from wagtail import urls as wagtail_urls
|
|
||||||
from wagtail.admin import urls as wagtailadmin_urls
|
|
||||||
from wagtail.documents import urls as wagtaildocs_urls
|
|
||||||
|
|
||||||
|
|
||||||
class SignedIntConverter(IntConverter):
|
class SignedIntConverter(IntConverter):
|
||||||
|
|
@ -141,17 +141,21 @@ urlpatterns = [
|
||||||
name='file_upload_local'),
|
name='file_upload_local'),
|
||||||
|
|
||||||
# feedback
|
# feedback
|
||||||
path(r'api/core/feedback/<str:course_session_id>/summary/', get_expert_feedbacks_for_course,
|
path(r'api/core/feedback/<str:course_session_id>/summary/',
|
||||||
|
get_expert_feedbacks_for_course,
|
||||||
name='feedback_summary'),
|
name='feedback_summary'),
|
||||||
|
|
||||||
path(r'api/core/feedback/<str:course_session_id>/<str:circle_id>/', get_feedback_for_circle,
|
path(r'api/core/feedback/<str:course_session_id>/<str:circle_id>/',
|
||||||
|
get_feedback_for_circle,
|
||||||
name='feedback_for_circle'),
|
name='feedback_for_circle'),
|
||||||
|
|
||||||
# edoniq test
|
# edoniq test
|
||||||
path(r'api/core/edoniq-test/redirect/', get_edoniq_token_redirect,
|
path(r'api/core/edoniq-test/redirect/', get_edoniq_token_redirect,
|
||||||
name='get_edoniq_token_redirect'),
|
name='get_edoniq_token_redirect'),
|
||||||
path(r'api/core/edoniq-test/export-users/', export_students, name='edoniq_export_students'),
|
path(r'api/core/edoniq-test/export-users/', export_students,
|
||||||
path(r'api/core/edoniq-test/export-trainers/', export_trainers, name='edoniq_export_trainers'),
|
name='edoniq_export_students'),
|
||||||
|
path(r'api/core/edoniq-test/export-trainers/', export_trainers,
|
||||||
|
name='edoniq_export_trainers'),
|
||||||
path(r'api/core/edoniq-test/export-users-trainers/', export_students_and_trainers,
|
path(r'api/core/edoniq-test/export-users-trainers/', export_students_and_trainers,
|
||||||
name='edoniq_export_students_and_trainers'),
|
name='edoniq_export_students_and_trainers'),
|
||||||
|
|
||||||
|
|
@ -183,16 +187,16 @@ urlpatterns = [
|
||||||
]
|
]
|
||||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
|
|
||||||
if settings.DEBUG:
|
if not settings.APP_ENVIRONMENT.startswith('prod'):
|
||||||
# Static file serving when using Gunicorn + Uvicorn for local web socket development
|
|
||||||
urlpatterns += staticfiles_urlpatterns()
|
|
||||||
|
|
||||||
if settings.APP_ENVIRONMENT != 'production':
|
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
re_path(r'api/core/cypressreset/$', cypress_reset_view,
|
re_path(r'api/core/cypressreset/$', cypress_reset_view,
|
||||||
name='cypress_reset_view'),
|
name='cypress_reset_view'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if settings.DEBUG:
|
||||||
|
# Static file serving when using Gunicorn + Uvicorn for local web socket development
|
||||||
|
urlpatterns += staticfiles_urlpatterns()
|
||||||
|
|
||||||
|
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ def check_rate_limit(request):
|
||||||
@authentication_classes((authentication.SessionAuthentication,))
|
@authentication_classes((authentication.SessionAuthentication,))
|
||||||
@permission_classes((IsAdminUser,))
|
@permission_classes((IsAdminUser,))
|
||||||
def cypress_reset_view(request):
|
def cypress_reset_view(request):
|
||||||
if settings.APP_ENVIRONMENT != "production":
|
if not settings.APP_ENVIRONMENT.startswith("prod"):
|
||||||
call_command("cypress_reset")
|
call_command("cypress_reset")
|
||||||
|
|
||||||
return HttpResponseRedirect("/server/admin/")
|
return HttpResponseRedirect("/server/admin/")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue