add comments here

This commit is contained in:
ducoterra
2020-04-24 19:56:47 -04:00
parent 96dbf7fe81
commit 02d2f9d7e6
2 changed files with 3 additions and 1 deletions

View File

@@ -39,4 +39,4 @@ deploy:
- mv out.yaml k8s/deploy.yaml - mv out.yaml k8s/deploy.yaml
- ./kubectl apply -f k8s - ./kubectl apply -f k8s
- ./kubectl rollout status deploy $DEPLOY - ./kubectl rollout status deploy $DEPLOY
- ./kubectl exec -it $(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate - ./kubectl exec $(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate

View File

@@ -4,10 +4,12 @@ from rest_framework import generics
class SnippetList(generics.ListCreateAPIView): class SnippetList(generics.ListCreateAPIView):
# Add comments here
queryset = Snippet.objects.all() queryset = Snippet.objects.all()
serializer_class = SnippetSerializer serializer_class = SnippetSerializer
class SnippetDetail(generics.RetrieveUpdateDestroyAPIView): class SnippetDetail(generics.RetrieveUpdateDestroyAPIView):
# Add comments here
queryset = Snippet.objects.all() queryset = Snippet.objects.all()
serializer_class = SnippetSerializer serializer_class = SnippetSerializer