diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3684d28..6782572 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,4 +39,4 @@ deploy: - mv out.yaml k8s/deploy.yaml - ./kubectl apply -f k8s - ./kubectl rollout status deploy $DEPLOY - - ./kubectl exec -it $(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate \ No newline at end of file + - ./kubectl exec $(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate \ No newline at end of file diff --git a/api/views.py b/api/views.py index 0178366..09ca733 100644 --- a/api/views.py +++ b/api/views.py @@ -4,10 +4,12 @@ from rest_framework import generics class SnippetList(generics.ListCreateAPIView): + # Add comments here queryset = Snippet.objects.all() serializer_class = SnippetSerializer class SnippetDetail(generics.RetrieveUpdateDestroyAPIView): + # Add comments here queryset = Snippet.objects.all() serializer_class = SnippetSerializer \ No newline at end of file