netpromotion/deployer
Composer 安装命令:
composer require netpromotion/deployer
包简介
Takes repository and uploads non-ignored files to remote server
README 文档
README
It takes repository and uploads non-ignored files to remote server
How to use it
- Go to your project directory
- Run
composer require --dev netpromotion/deployer - Create
deploy.jsonfile - Configure it similar way as
dg/ftp-deployment, differences:logis object with two optional keys:configis path of dump of final configuration,outputis path of output logignoreis array of additional ignored files (overrides.gitignore)
- Private properties (f.e.
remote) extract intodeploy.local.jsonfile - Run
./vendor/bin/deploy
Examples
deploy.json
{
"test": true,
"log": {
"config": "/deploy.config.log"
},
"ignore": [
"/tests/",
"!/vendor/"
],
"before": [
"local: git tag -f deployed",
"local: git push -f origin deployed",
"local: composer install"
],
"after": [
"http://server.tld/deployed.php"
]
}
deploy.local.json
{
"test": false,
"remote": "ftp://user:password@server.tld/directory"
}
统计信息
- 总下载量: 349
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-15