From 0f65ac6fdfe24e916044397849008b91fcdef31d Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Fri, 7 Mar 2025 15:16:12 +0100 Subject: [PATCH] Add overriding Deployer variables --- .../install-and-configure-hypernode-deploy.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/hypernode-deploy/getting-started/install-and-configure-hypernode-deploy.md b/docs/hypernode-deploy/getting-started/install-and-configure-hypernode-deploy.md index 7a3c8c7d..c9d4f514 100644 --- a/docs/hypernode-deploy/getting-started/install-and-configure-hypernode-deploy.md +++ b/docs/hypernode-deploy/getting-started/install-and-configure-hypernode-deploy.md @@ -47,3 +47,14 @@ More configurations can be found at: ``` In the next step we're going to configure a CI/CD pipeline to let Hypernode Deploy execute the `deploy.php` configuration. + +## Override Deployer variables + +Some varaibles are automatically set, for example the default timeout of every task, you can change this by simply adding a `set` in our `deploy.php` as can be shown here: + +```php +use function Deployer\set; + +// Change the default timeout from 300 seconds to 900 seconds +set('default_timeout', 900); +```