2017 © Pedro Peláez
 

library deployment

image

adt/deployment

  • Thursday, August 31, 2017
  • by michallohnisky
  • Repository
  • 16 Watchers
  • 0 Stars
  • 242 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 5 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Server requirements

  • Git
  • Composer
  • Bower
  • OP Cache (optional)
  • APCu (optional)
  • Redis (optional)

Installation & usage

  1. The best way to install is using Composer:
$ composer require adt/after-deploy
  1. Add this code in bootstrap.php before including autoload.php
 include __DIR__ . '/../vendor/adt/after-deploy/src/AfterDeploy.php';
 (new ADT\AfterDeploy\AfterDeploy())
    ->runBase([
        'tempDir' => '/path/to/tempDir/', // required
        'logDir' => '/path/to/logDir/', // required
        'wwwDir' => '/path/to/wwwDir/', // optional, if not given, tempDir/../www is used, on
        'key' => 'afterDeploy', // optional
        'useMaintenance' => 1, // optional, default = 0
        'sleep' => 1 // optional, time to wait before afterDeploy starts in seconds, if useMaintenance is 0 it's not used
    ]
);
  1. Enable the extension in your neon config:
extensions:
    afterDeploy: ADT\AfterDeploy\DI\AfterDeployExtension
  1. Update deployment configuration file deployment.ini like:
after[] = http://example.com/?afterDeploy
  1. Run dg/ftp-deployment script
$ php private/vendor/dg/ftp-deployment/Deployment/deployment.php deployment.ini
  1. Optionally you can set the redis in neon config:
afterDeploy:
    redis:
        client: @redis.client # \Kdyby\Redis\RedisClient
        dbs:
            - 1 # clear db 1
  1. If you use BackgroundQueue >= v2.1.1, you can optionally set it in neon config:
afterDeploy:
    backgroundQueue:
        service: @backgroundQueue.service # \ADT\BackgroundQueue\Service

This will send a noop to currently running consumers, so they check if they should terminate. Telling the consumer to terminate on next check (by -m 1 or by sending SIGINT signal) is not part of this component and is up to you., (*1)

The Versions

31/08 2017

dev-master

9999999-dev

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette deploy after afterdeploy after-deploy

31/08 2017

dev-f-exec-return-code

dev-f-exec-return-code

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette deploy after afterdeploy after-deploy

04/07 2017

v3.3

3.3.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette deploy after afterdeploy after-deploy

04/07 2017

dev-f-background-queue-consumer-reload

dev-f-background-queue-consumer-reload

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette deploy after afterdeploy after-deploy

29/05 2017

v3.2

3.2.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette deploy after afterdeploy after-deploy

29/05 2017

v3.1

3.1.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette deploy after afterdeploy after-deploy

29/05 2017

dev-adt-deployment-upravit-tak-aby-fungoval-vzdy

dev-adt-deployment-upravit-tak-aby-fungoval-vzdy

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette deploy after afterdeploy after-deploy

26/05 2017

v3.0

3.0.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette deploy after afterdeploy after-deploy

14/02 2017

v2.2

2.2.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette

08/09 2015

v2.1

2.1.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette

28/08 2015

v2.0

2.0.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

composer bower deployment nette

27/08 2015

v1.1.2

1.1.2.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

composer bower deployment nette

27/08 2015

v1.1.1

1.1.1.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

composer bower deployment nette

27/08 2015

v1.1

1.1.0.0

  Sources   Download