From d47ec6dc9d5a4525c6184daa102cb1d6040415d4 Mon Sep 17 00:00:00 2001 From: dougjq <68131341+dougjq@users.noreply.github.com> Date: Mon, 21 Oct 2024 12:06:16 -0400 Subject: [PATCH 1/2] Update deployments.md to clarify the statement about zero-downtime deployment. Support developers working with managers who may read the docs without realizing that database migrations are separate and may require downtime. --- trellis/deployments.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trellis/deployments.md b/trellis/deployments.md index 98097ab8..891f913a 100644 --- a/trellis/deployments.md +++ b/trellis/deployments.md @@ -51,6 +51,12 @@ trellis deploy It's normal and expected to see the WordPress install screen the first time you deploy. It's up to you to either import an existing database or install a fresh site. ::: +::: warning Note +**About zero-downtime deploys**. + +Each deploy, Trellis makes a new folder. The "deploy" is effected by symlinking, see below Hooks. This is also how rollbacks work. Database migrations to a new schema are not included as part of a Trellis deploy. This means that if you need to migrate your database (for example, to account for new plugins), you may need to expect downtime depending on how you manage your database. Modify your deploy process to account for database migrations as with any other framework. +::: + ## Rollbacks Run the following from any directory within your project: From 274f70f048659d5b193bb193d9774d4372796bae Mon Sep 17 00:00:00 2001 From: dougjq <68131341+dougjq@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:56:25 -0500 Subject: [PATCH 2/2] Update trellis/deployments.md Co-authored-by: Scott Walkinshaw --- trellis/deployments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trellis/deployments.md b/trellis/deployments.md index 891f913a..cfaacc17 100644 --- a/trellis/deployments.md +++ b/trellis/deployments.md @@ -54,7 +54,7 @@ It's normal and expected to see the WordPress install screen the first time you ::: warning Note **About zero-downtime deploys**. -Each deploy, Trellis makes a new folder. The "deploy" is effected by symlinking, see below Hooks. This is also how rollbacks work. Database migrations to a new schema are not included as part of a Trellis deploy. This means that if you need to migrate your database (for example, to account for new plugins), you may need to expect downtime depending on how you manage your database. Modify your deploy process to account for database migrations as with any other framework. +Database migrations to a new schema are not included as part of a Trellis deploy. This means that if you need to migrate your database (for example, to account for new plugins), you may need to expect downtime depending on how you manage your database. Modify your deploy process to account for database migrations as with any other framework. ::: ## Rollbacks