From ebeb1c88189d23c298a1dbbb083ea459f8a99eab Mon Sep 17 00:00:00 2001 From: maniarathi Date: Fri, 23 Apr 2021 11:07:57 -0700 Subject: [PATCH] Fix command to EB to use the artifact.zip file during deployment instead of the source code in the directory. (#2174) --- backend/czi_hosted/eb/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/czi_hosted/eb/Makefile b/backend/czi_hosted/eb/Makefile index 9955b876..f00f6a92 100644 --- a/backend/czi_hosted/eb/Makefile +++ b/backend/czi_hosted/eb/Makefile @@ -54,6 +54,6 @@ build: clean (cd artifact.dir; \ cp -r backend/czi_hosted/common/web/static static; \ zip -r ../artifact.zip . --exclude backend/czi_hosted/test/\* backend/czi_hosted/eb/\* ; ); \ - if ! [ -f .elasticbeanstalk/config.yml ] ; then \ + if ! grep artifact.zip .elasticbeanstalk/config.yml ; then \ mkdir -p .elasticbeanstalk ; cat config_deploy.yaml >> .elasticbeanstalk/config.yml ; fi