2017 © Pedro Peláez
 

library silverstripe-deployer

Opinionated recipe for deploying SilverStripe projects via Deployer

image

burnbright/silverstripe-deployer

Opinionated recipe for deploying SilverStripe projects via Deployer

  • Monday, September 11, 2017
  • by jedateach
  • Repository
  • 0 Watchers
  • 6 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 4 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Deployer recipe for SilverStripe websites

Opinionated recipe for deploying SilverStripe projects via Deployer., (*1)

https://deployer.org, (*2)

Goals

  • Simple to install.
  • Configure using yaml and ENV variables.
  • Build locally and transfer output onto server.
  • Deploy from CI/CD or local environment.
  • Share tasks across projects, but not config.
  • Keep secrets secret.
  • Extensible. You can customise deploy.php.
  • Multiple projects/domains/stages per host.

Opinions

  • Defaults to 'staging' for deploys etc
  • Assumes key-based SSH authentication is configured for each host.
  • Deploys into ~/deploy/{hostname}. e.g.
    • ~/deploy/example.com
    • ~/deploy/test.example.com

Installation and setup

Include in your project: composer require --dev burnbright/silverstripe-deployer This will add required vendor packages, and in particular the bin to run deployer: vendor/bin/dep., (*3)

Copy the deploy.php template to your project root: cp vendor/burnbright/silverstripe-deployer/templates/deploy.php deploy.php, (*4)

Modify your deploy.php file to suit your project., (*5)

Add .silverstripe-deployer to your gitignore., (*6)

Simplify vendor commands

To avoid needing to type vendor/bin/dep, update your PATH to search the local vendor/bin folder:, (*7)

export PATH=$PATH:./vendor/bin

Then you only need to type dep from the root of your project., (*8)

Usage

(Assumes you've added ./vendor/bin to your PATH, otherwise use vendor/bin/dep), (*9)

  • dep - will list available commands.
  • dep deploy - defaults to deploying to 'staging'.
  • dep deploy production - deploy to 'production'.
  • dep ssh - ssh into a host.

Influences

  • https://www.silverstripe.org/blog/making-deployment-a-piece-of-cake-with-deployer
  • https://gist.github.com/bummzack/b9e4a3ef0d16ab303aab66a779f92c6e
  • https://gist.github.com/lerni/26bd8ce1861ed563fb5731236f6baf46
  • https://github.com/dnadesign/shipistrano

The Versions

11/09 2017

dev-master

9999999-dev

Opinionated recipe for deploying SilverStripe projects via Deployer

  Sources   Download

The Requires

 

11/09 2017

0.2.1

0.2.1.0

Opinionated recipe for deploying SilverStripe projects via Deployer

  Sources   Download

The Requires

 

21/08 2017

0.2.0

0.2.0.0

Opinionated recipe for deploying SilverStripe projects via Deployer

  Sources   Download

The Requires

 

20/08 2017

0.1.0

0.1.0.0

Opinionated recipe for deploying SilverStripe projects via Deployer

  Sources   Download

The Requires