chore: add target

skip ci
This commit is contained in:
Alessandro Pezzè 2022-05-13 22:17:43 +02:00
parent 985096d697
commit 12be924a25

View file

@ -118,3 +118,15 @@ k8s-build-db: # (k8s) Build the database
k8s-delete: # (k8s) Delete pokeapi namespace k8s-delete: # (k8s) Delete pokeapi namespace
kubectl delete namespace pokeapi kubectl delete namespace pokeapi
update-graphql-prod:
git pull origin master
docker stop pokeapi_graphql-engine_1
sync; echo 3 > /proc/sys/vm/drop_caches
docker-compose -f docker-compose.yml -f docker-compose.override.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d app
make docker-migrate
make docker-build-db
docker stop pokeapi_app_1
sync; echo 3 > /proc/sys/vm/drop_caches
docker exec pokeapi_web_1 sh -c 'rm -rf /tmp/cache/*'
docker start pokeapi_graphql-engine_1