implement ps:restartall. closes #82 #218

This commit is contained in:
Michael Hobbs
2015-01-14 16:37:18 -08:00
parent 9490889411
commit e760e1cc92
5 changed files with 13 additions and 12 deletions

View File

@@ -66,12 +66,20 @@ case "$1" in
release_and_deploy $APP
;;
ps:restartall)
for app in $DOKKU_ROOT/*/CONTAINER; do
APP=$(basename "$(dirname $app)");
dokku ps:restart $APP
done
;;
help | ps:help)
cat && cat<<EOF
ps <app> List processes running in app container(s)
ps:start <app> Start app container(s)
ps:stop <app> Stop app container(s)
ps:restart <app> Restart app container(s)
ps:restartall Restart all deployed app containers
EOF
;;