adt/after-deploy
最新稳定版本:v3.4
Composer 安装命令:
composer require adt/after-deploy
包简介
README 文档
README
- Git
- Composer
- Bower
- OP Cache (optional)
- APCu (optional)
- Redis (optional)
Installation & usage
- The best way to install is using Composer:
$ composer require adt/after-deploy
- 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 ] );
- Enable the extension in your neon config:
extensions: afterDeploy: ADT\AfterDeploy\DI\AfterDeployExtension
- Update deployment configuration file
deployment.inilike:
after[] = http://example.com/?afterDeploy
- Run
dg/ftp-deploymentscript
$ php private/vendor/dg/ftp-deployment/Deployment/deployment.php deployment.ini
- Optionally you can set the redis in neon config:
afterDeploy: redis: client: @redis.client # \Kdyby\Redis\RedisClient dbs: - 1 # clear db 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.
统计信息
- 总下载量: 20.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-05-29