Fix ps_restart to not exit
ps_restartall_cmd calls ps_restart from a loop, if ps_restart exits because of a not deployed app further apps might not be restarted.
This commit is contained in:
@@ -128,9 +128,11 @@ ps_restart() {
|
|||||||
local APP="$1"; verify_app_name "$APP"
|
local APP="$1"; verify_app_name "$APP"
|
||||||
local IMAGE_TAG=$(get_running_image_tag "$APP")
|
local IMAGE_TAG=$(get_running_image_tag "$APP")
|
||||||
|
|
||||||
! (is_deployed "$APP") && echo "App $APP has not been deployed" && exit 0
|
if is_deployed "$APP"; then
|
||||||
|
release_and_deploy "$APP" "$IMAGE_TAG"
|
||||||
release_and_deploy "$APP" "$IMAGE_TAG"
|
else
|
||||||
|
echo "App $APP has not been deployed"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
ps_scale() {
|
ps_scale() {
|
||||||
|
|||||||
Reference in New Issue
Block a user