From b3735bbc02dc5ab017a5ce697cdfd31afcb1b938 Mon Sep 17 00:00:00 2001 From: California Sullivan Date: Tue, 16 Apr 2019 15:36:57 -0700 Subject: [PATCH] deploy(ui).sh: do_deploy: also do_upgrade_pkgs When we deploy new code we should also be sure to upgrade the python packages in the virtualenv to match the code. Also fix the deployui.sh script's do_deploy. There was no conf variable set in _get_db_pass, causing the script to hang. Signed-off-by: California Sullivan --- scripts/deploy.sh | 1 + scripts/deployui.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a7c5ed1..5b9cd43 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -526,6 +526,7 @@ _clean_up() { } do_deploy() { + do_upgrade_pkgs _stage_from_$TYPE $SOURCE _deploy _clean_up diff --git a/scripts/deployui.sh b/scripts/deployui.sh index 033c78c..ca84d1a 100755 --- a/scripts/deployui.sh +++ b/scripts/deployui.sh @@ -353,6 +353,7 @@ EOF _get_db_pass() { local pass + local conf=$REMOTE_APP_DIR/telemetryui/telemetryui/config.py if [ ! -f $conf ]; then error "missing config.py file; must run the 'install' action first" @@ -511,6 +512,7 @@ _clean_up() { } do_deploy() { + do_upgrade_pkgs _stage_from_$TYPE $SOURCE _deploy _clean_up