From a4203843a1c197dc9a3922ed61a03a16e2b0660e Mon Sep 17 00:00:00 2001 From: Alejandro Akbal <37181533+AlejandroAkbal@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:48:05 +0100 Subject: [PATCH 1/2] docs: fix wrong command --- docs/deployment/builders/dockerfiles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deployment/builders/dockerfiles.md b/docs/deployment/builders/dockerfiles.md index 8b6702c8f..322d91b7d 100644 --- a/docs/deployment/builders/dockerfiles.md +++ b/docs/deployment/builders/dockerfiles.md @@ -30,7 +30,7 @@ Dokku will only select the `dockerfile` builder if both the `herokuish` and `pac If an application was previously deployed via buildpacks, the following commands should be run before a Dockerfile deploy will succeed: ```shell -dokku proxy:clear node-js-app +dokku proxy:clear-config node-js-app ``` ### Changing the `Dockerfile` location From 1b1c42d69f6586869c0d433caf9a0aafbba8a63c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 23 Sep 2023 00:38:34 -0400 Subject: [PATCH 2/2] docs: update command The latest Dokku manages ports via the ports command. --- docs/deployment/builders/dockerfiles.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/deployment/builders/dockerfiles.md b/docs/deployment/builders/dockerfiles.md index 322d91b7d..71ead308c 100644 --- a/docs/deployment/builders/dockerfiles.md +++ b/docs/deployment/builders/dockerfiles.md @@ -27,10 +27,10 @@ Dokku will only select the `dockerfile` builder if both the `herokuish` and `pac ### Switching from buildpack deployments -If an application was previously deployed via buildpacks, the following commands should be run before a Dockerfile deploy will succeed: +If an application was previously deployed via buildpacks and ports were customized, the following commands should be run prior to a deploy to ensure the Dockerfile ports are respected: ```shell -dokku proxy:clear-config node-js-app +dokku ports:clear node-js-app ``` ### Changing the `Dockerfile` location