fix rebuildall and restartall
This commit is contained in:
1 parent
9a704bc656
commit
ddf893bc8a
1 file changed
+7
-4
+7
-4
@@ -80,8 +80,9 @@ case "$1" in
|
|||||||
ps:rebuildall)
|
ps:rebuildall)
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
for app in $DOKKU_ROOT/*; do
|
for app in $DOKKU_ROOT/*; do
|
||||||
APP=$(basename "$(dirname $app)")
|
[[ ! -d $app ]] && continue
|
||||||
is_deployed && dokku ps:rebuild $APP
|
APP=$(basename $app)
|
||||||
|
is_deployed $APP && dokku ps:rebuild $APP
|
||||||
done
|
done
|
||||||
shopt -u nullglob
|
shopt -u nullglob
|
||||||
;;
|
;;
|
||||||
@@ -98,10 +99,12 @@ case "$1" in
|
|||||||
|
|
||||||
ps:restartall)
|
ps:restartall)
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
for app in $DOKKU_ROOT/*/CONTAINER; do
|
for app in $DOKKU_ROOT/*; do
|
||||||
APP=$(basename "$(dirname $app)");
|
[[ ! -d $app ]] && continue
|
||||||
|
APP=$(basename $app)
|
||||||
dokku ps:restart $APP
|
dokku ps:restart $APP
|
||||||
done
|
done
|
||||||
|
shopt -u nullglob
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ps:scale)
|
ps:scale)
|
||||||
|
|||||||
Reference in new issue
Block a user