bretrzaun/deployment-command
Composer 安装命令:
composer require bretrzaun/deployment-command
包简介
Console-Command to deploy an application to (multiple) servers
README 文档
README
Symfony Console command to deploy an application to remote server(s).
Installation
Install via Composer:
composer require bretrzaun/deployment-command
Configuration
For each environment create a configuration file named like the environment.
The nodes must be accessible via SSH-based authentication or a keyfile can be given.
Example
{
"server" : {
"nodes" : ["user@my-server"],
"keyfile": "/path-to/keyfile",
"target" : "/target-folder",
"scripts" : {
"pre-deploy-cmd" : [],
"post-deploy-cmd" : [
"command1",
"command2"
]
}
},
"scripts" : {
"pre-deploy-cmd" : [
"composer install --no-dev -o"
],
"post-deploy-cmd" : [
"composer install"
]
}
}
Options
In the options section the following nodes can be defined:
script-timeout
Process timeout in seconds for each local script. Default value: 120 seconds
sync-timeout
Process timeout in seconds for sync. Default value: 300 seconds
Usage
Register the console command to a Symfony console application:
$console->add(new DeploymentCommand('path/to/config-folder/'));
统计信息
- 总下载量: 869
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-29