From db0b2bc93e43ce77b1c155b464ac495d69b38469 Mon Sep 17 00:00:00 2001 From: Adel Qalieh Date: Fri, 4 Aug 2017 14:48:07 -0400 Subject: [PATCH 1/2] Use non-deprecated apps command --- docs/getting-started/upgrading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/upgrading.md b/docs/getting-started/upgrading.md index cfb2b72b8..951380b4f 100644 --- a/docs/getting-started/upgrading.md +++ b/docs/getting-started/upgrading.md @@ -24,7 +24,7 @@ If Dokku was installed via `apt-get install dokku` or `bootstrap.sh` (most commo ```shell sudo apt-get update -dokku --quiet apps | xargs -L1 dokku ps:stop # stops each running app +dokku --quiet apps:list | xargs -L1 dokku ps:stop # stops each running app sudo apt-get install -qq -y dokku herokuish sshcommand plugn dokku ps:rebuildall # rebuilds all applications ``` From 0babde74f382727878a2531203b4dba1c9f46a0e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 19 Aug 2017 19:03:20 -0400 Subject: [PATCH 2/2] docs: update uninstallation docs to clarify which subcommand to use for listing applications [ci skip] --- docs/getting-started/upgrading.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/upgrading.md b/docs/getting-started/upgrading.md index 951380b4f..b062113c7 100644 --- a/docs/getting-started/upgrading.md +++ b/docs/getting-started/upgrading.md @@ -23,9 +23,19 @@ Before upgrading, check the migration guides to get comfortable with new feature If Dokku was installed via `apt-get install dokku` or `bootstrap.sh` (most common), upgrade with: ```shell +# update your local apt cache sudo apt-get update -dokku --quiet apps:list | xargs -L1 dokku ps:stop # stops each running app + +# stop each running app +# for 0.8.1 and newer versions, use +dokku --quiet apps:list | xargs -L1 dokku ps:stop +# for older versions, use +dokku --quiet apps | xargs -L1 dokku ps:stop + +# update dokku and it's dependencies sudo apt-get install -qq -y dokku herokuish sshcommand plugn + +# rebuild all of your applications dokku ps:rebuildall # rebuilds all applications ```