From ae6ca560f9fd9dd773b34b748f49da0052e85db2 Mon Sep 17 00:00:00 2001 From: Mikhail Yumanov Date: Thu, 11 Mar 2021 12:12:34 +0300 Subject: [PATCH] CST-10 znick#336 fixed deploy beta script --- deploy_local_beta/deploy_local_beta_python2.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy_local_beta/deploy_local_beta_python2.sh b/deploy_local_beta/deploy_local_beta_python2.sh index 1078775e4..2c9df50ec 100644 --- a/deploy_local_beta/deploy_local_beta_python2.sh +++ b/deploy_local_beta/deploy_local_beta_python2.sh @@ -12,8 +12,15 @@ else #SETUP VIRTUALENV ################# +if test -e $ANYBETA_VENV_DIR +then + ANYBETA_report "Remove old virtualenv" + rm -r $ANYBETA_VENV_DIR +fi + ANYBETA_report ANYBETA_report "Enable virtualenv" + virtualenv -p $ANYBETA_PYTHON_PATH $ANYBETA_VENV_NAME . $ANYBETA_VENV_ACTIVATE