studio24/deployer-recipes

Deployer recipes to aid deployment

v1.1.1 2023-03-31 12:02 UTC

This package is auto-updated.

Last update: 2024-03-25 12:29:24 UTC


README

Deployer recipes to aid deployment via https://deployer.org

license

Installation

Install via Composer:

composer require studio24/deployer-recipes:^1.1 --dev

Install all Studio 24 Deployer tasks by adding this to your deploy.php:

require 'vendor/studio24/deployer-recipes/all.php';

To only install individual tasks, see the docs for each task.

Running Deployer

Please note this project uses a local Deployer installation (via Composer) not a global version of Deployer. This is so we can make use of other Composer packages in deployment tasks reliably.

To run deployments please use:

vendor/bin/dep deploy environment 

rather than:

dep deploy environment

If you wish, you can install vendor binaries to another location by editing your project composer.json file. For example, to install to bin so you can run deployer via bin/dep:

{
  "config": {
    "bin-dir": "bin"
  }
}

Tasks

The following tasks are available:

Full deploy example

A sample of a full deploy file can be found in examples/deploy.php

To use this file in a project copy it to your project root and update the config variables.

Please edit deploy.php depending on your needs. For example if you don't need to run Composer during deployment remove the line:

    // Composer install
    'deploy:vendors,',

Requirements