2017 © Pedro PelĂĄez
 

library deployer-extended-typo3

Deployment tool for TYPO3.

image

sourcebroker/deployer-extended-typo3

Deployment tool for TYPO3.

  • Thursday, June 28, 2018
  • by sourcebroker
  • Repository
  • 1 Watchers
  • 5 Stars
  • 8,617 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 94 Versions
  • 15 % Grown

The README.md

deployer-extended-typo3

Packagist Version License: MIT, (*1)

[!NOTE], (*2)

This package is a working example (successfully used in a mid-sized agency) that shows how you can use different sourcebroker/deployer-* packages together. If you like the workflow provided here, feel free to use it as-is in your own projects., (*3)

However, it's often a better idea to create your own package so it fits your needs perfectly. You can combine different sourcebroker/deployer-* base packages to build your own high customized, agency-level solution., (*4)

An example of such a custom solution, built on top of sourcebroker/deployer-* packages, but adding their own improvements and adaptations is: liquidlight/deployer-typo3-ci, (*5)

What does it do?

This package combine different sourcebroker/deployer-* base packages and adds some very high level customizations, you can call it agency-level customizations., (*6)

  1. sourcebroker/deployer-typo3-deploy - TYPO3 deploy process at local level
  2. sourcebroker/deployer-typo3-deploy-ci - TYPO3 deploy process at CI level (gitlab for now only)
  3. sourcebroker/deployer-typo3-database - TYPO3 preconfigured synchronization of databases between multiple instances
  4. sourcebroker/deployer-typo3-media - TYPO3 preconfigured synchronization of media between multiple instances

Installation

  1. Install package with composer:, (*7)

    composer require sourcebroker/deployer-extended-typo3
    
  2. Put the following lines at the beginning of your deploy.php. You can decide which packages/functionality you want to use. For example remove the line ['get' => 'sourcebroker/deployer-typo3-database'], and there will be no tasks for database sync - you can replace it with your own tasks for database update. The same for ['get' => 'sourcebroker/deployer-typo3-media'] - maybe you prefer to use https://packagist.org/packages/ichhabrecht/filefill. Another example: if you choose to deploy using CI, use ['get' => sourcebroker/deployer-typo3-deploy-ci] instead of ['get' => sourcebroker/deployer-typo3-deploy]. Each package is completely independent, use only those you need., (*8)

    <?php
    
    require_once('./vendor/autoload.php');
    
    new \SourceBroker\DeployerLoader\Load([
        ['get' => 'sourcebroker/deployer-typo3-media'],
        ['get' => 'sourcebroker/deployer-typo3-database'],
        ['get' => 'sourcebroker/deployer-typo3-deploy'],
        ['get' => 'sourcebroker/deployer-extended-typo3'],
    ]);
    
  3. If you want to use database synchronization, please read the documentation at sourcebroker/deployer-typo3-database., (*9)

  4. If you want to use media synchronization, please read the documentation at sourcebroker/deployer-typo3-media., (*10)

Example of working configuration

CLI deploy (local)

This is an example of working configuration for TYPO3 13. The aim of sourcebroker/deployer-extended-typo3 is to have a very slim deploy.php file for easy upgrades to future versions., (*11)

<?php

namespace Deployer;

require_once('./vendor/autoload.php');

new \SourceBroker\DeployerLoader\Load([
    ['get' => 'sourcebroker/deployer-typo3-media'],
    ['get' => 'sourcebroker/deployer-typo3-database'],
    ['get' => 'sourcebroker/deployer-typo3-deploy'],
    ['get' => 'sourcebroker/deployer-extended-typo3'],
]);

set('repository', 'git@github.com:sourcebrokergit/t3base13.git');

host('production')
  ->setHostname('vm-dev.example.com')
  ->setRemoteUser('deploy')
  ->set('branch', 'main')
  ->set('public_urls', ['https://t3base13.example.com'])
  ->set('deploy_path', '~/t3base13/production');

host('staging')
  ->setHostname('vm-dev.example.com')
  ->setRemoteUser('deploy')
  ->set('branch', 'develop')
  ->set('public_urls', ['https://staging-t3base13.example.com'])
  ->set('deploy_path', '~/t3base13/staging');

GitLab CI deploy

[!NOTE] Deploy is from CI level, but database and media sync in below example still require SSH access from your local computer!, (*12)

<?php

namespace Deployer;

require_once('./vendor/autoload.php');

new \SourceBroker\DeployerLoader\Load([
    ['get' => 'sourcebroker/deployer-typo3-media'],
    ['get' => 'sourcebroker/deployer-typo3-database'],
    ['get' => 'sourcebroker/deployer-typo3-deploy-ci'],
    ['get' => 'sourcebroker/deployer-extended-typo3'],
]);

host('production')
  ->setHostname('vm-dev.example.com')
  ->setRemoteUser('deploy')
  ->set('public_urls', ['https://t3base13.example.com'])
  ->set('deploy_path', '~/t3base13/production');

host('staging')
  ->setHostname('vm-dev.example.com')
  ->setRemoteUser('deploy')
  ->set('public_urls', ['https://staging-t3base13.example.com'])
  ->set('deploy_path', '~/t3base13/staging');

Changelog

See CHANGELOG.rst, (*13)

The Versions

28/07 2017
27/07 2017
26/07 2017
26/07 2017
15/06 2017

3.2.1

3.2.1.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

15/06 2017

3.2.0

3.2.0.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

14/06 2017

2.1.1

2.1.1.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

12/06 2017

3.1.2

3.1.2.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

11/06 2017

3.1.1

3.1.1.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

11/06 2017

2.1.0

2.1.0.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

28/05 2017

3.1.0

3.1.0.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

28/05 2017

2.0.0

2.0.0.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

27/05 2017

3.0.2

3.0.2.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

27/05 2017

3.0.1

3.0.1.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

27/05 2017

3.0.0

3.0.0.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

05/04 2017

1.0.8

1.0.8.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

05/04 2017

1.0.7

1.0.7.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

21/02 2017

1.0.6

1.0.6.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

20/02 2017

1.0.5

1.0.5.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

20/02 2017

1.0.4

1.0.4.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

20/02 2017

1.0.3

1.0.3.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

20/02 2017

1.0.2

1.0.2.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

19/02 2017

1.0.1

1.0.1.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer

19/02 2017

1.0.0

1.0.0.0

Deployment tool for PHP - additional commands for TYPO3.

  Sources   Download

MIT

The Requires

 

by Krystian Szymukowicz
by Krystian LiƄski

typo3 deployer