mirror of
https://github.com/clearlinux/telemetrics-backend.git
synced 2026-09-05 13:21:28 +00:00
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:
committed by
ajch
parent
97557f9395
commit
b3735bbc02
@@ -526,6 +526,7 @@ _clean_up() {
|
||||
}
|
||||
|
||||
do_deploy() {
|
||||
do_upgrade_pkgs
|
||||
_stage_from_$TYPE $SOURCE
|
||||
_deploy
|
||||
_clean_up
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user