diff --git a/Makefile b/Makefile index 926b0cbe..32bd4ad8 100755 --- a/Makefile +++ b/Makefile @@ -118,3 +118,15 @@ k8s-build-db: # (k8s) Build the database k8s-delete: # (k8s) Delete pokeapi namespace 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