From c2c4c8473d2ae35220a26c5c0179ae3dff62218a Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sat, 3 Jul 2021 03:35:59 -0500 Subject: [PATCH] Update Makefile to disable obsolete API deployment flow. --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8c2d599..bcd6652 100644 --- a/Makefile +++ b/Makefile @@ -20,18 +20,18 @@ dist/personal-measure-web.tar.gz: tar czf dist/personal-measure-web-${VERSION}.tar.gz -C web/dist . cp dist/personal-measure-web-${VERSION}.tar.gz dist/personal-measure-web.tar.gz -deploy-api: dist/personal-measure-api.tar.gz - mkdir -p temp-deploy/personal-measure-api-${VERSION} - tar xzf dist/personal-measure-api-${VERSION}.tar.gz -C temp-deploy/personal-measure-api-${VERSION} - -ssh pmapi@pmapi.jdb-labs.com "sudo systemctl stop personal_measure_api.$(TARGET_ENV).service" - scp temp-deploy/personal-measure-api-${VERSION}/personal_measure_api pmapi@pmapi.jdb-labs.com:/home/pmapi/$(TARGET_ENV)/personal_measure_api - ssh pmapi@pmapi.jdb-labs.com "sudo systemctl start personal_measure_api.$(TARGET_ENV).service" - rm -r temp-deploy +#deploy-api: dist/personal-measure-api.tar.gz +# mkdir -p temp-deploy/personal-measure-api-${VERSION} +# tar xzf dist/personal-measure-api-${VERSION}.tar.gz -C temp-deploy/personal-measure-api-${VERSION} +# -ssh pmapi@pmapi.jdb-labs.com "sudo systemctl stop personal_measure_api.$(TARGET_ENV).service" +# scp temp-deploy/personal-measure-api-${VERSION}/personal_measure_api pmapi@pmapi.jdb-labs.com:/home/pmapi/$(TARGET_ENV)/personal_measure_api +# ssh pmapi@pmapi.jdb-labs.com "sudo systemctl start personal_measure_api.$(TARGET_ENV).service" +# rm -r temp-deploy deploy-web: dist/personal-measure-web.tar.gz mkdir -p temp-deploy/personal-measure-web-${VERSION} tar xzf dist/personal-measure-web-${VERSION}.tar.gz -C temp-deploy/personal-measure-web-${VERSION} - aws s3 sync temp-deploy/personal-measure-web-${VERSION} s3://pm.jdb-labs.com/$(TARGET_ENV)/webroot + aws s3 sync temp-deploy/personal-measure-web-${VERSION} s3://pm.jdb-software.com/$(TARGET_ENV)/webroot TARGET_ENV=${TARGET_ENV} operations/invalidate-cdn-cache.sh rm -r temp-deploy