From 64ac57a4635f8ba8a8eac402c6b1b9ec9f1a8730 Mon Sep 17 00:00:00 2001 From: David Neudorfer Date: Thu, 26 Jan 2017 08:20:58 -0800 Subject: [PATCH] hack: resolve issue where env folder is created and added to docker image --- scripts/deploy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 713d4809..d5c68c8a 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -37,6 +37,11 @@ rsync -arvz --delete \ -i mozart_rsa" \ $DEPLOY_USER@$HOST:$BASE_DIR-$ENV +# this is a temp fix to resolve issues with production +rm -rf ./env +ssh $DEPLOY_USER@$HOST $SSH_OPTS \ + "sudo su -c 'rm -rf $BASE_DIR-$ENV/env'" + # find the live environment LIVE_COLOR=$(ssh $SSH_OPTS $DEPLOY_USER@$HOST \ "sudo su -c 'cd $BASE_DIR-$ENV && docker-compose \