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 <california.l.sullivan@intel.com>
This commit is contained in:
California Sullivan
2019-04-17 15:00:32 -07:00
committed by ajch
parent 97557f9395
commit b3735bbc02
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -526,6 +526,7 @@ _clean_up() {
}
do_deploy() {
do_upgrade_pkgs
_stage_from_$TYPE $SOURCE
_deploy
_clean_up
+2
View File
@@ -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