burnbright/silverstripe-deployer
Composer 安装命令:
composer require burnbright/silverstripe-deployer
包简介
Opinionated recipe for deploying SilverStripe projects via Deployer
README 文档
README
Opinionated recipe for deploying SilverStripe projects via Deployer.
Goals
- Simple to install.
- Configure using yaml and ENV variables.
- Build locally and transfer output onto server.
- Deploy from CI/CD or local environment.
- Share tasks across projects, but not config.
- Keep secrets secret.
- Extensible. You can customise deploy.php.
- Multiple projects/domains/stages per host.
Opinions
- Defaults to 'staging' for deploys etc
- Assumes key-based SSH authentication is configured for each host.
- Deploys into
~/deploy/{hostname}. e.g.~/deploy/example.com~/deploy/test.example.com
Installation and setup
Include in your project:
composer require --dev burnbright/silverstripe-deployer
This will add required vendor packages, and in particular the bin to run deployer: vendor/bin/dep.
Copy the deploy.php template to your project root:
cp vendor/burnbright/silverstripe-deployer/templates/deploy.php deploy.php
Modify your deploy.php file to suit your project.
Add .silverstripe-deployer to your gitignore.
Simplify vendor commands
To avoid needing to type vendor/bin/dep, update your PATH to search the local vendor/bin folder:
export PATH=$PATH:./vendor/bin
Then you only need to type dep from the root of your project.
Usage
(Assumes you've added ./vendor/bin to your PATH, otherwise use vendor/bin/dep)
dep- will list available commands.dep deploy- defaults to deploying to 'staging'.dep deploy production- deploy to 'production'.dep ssh- ssh into a host.
Influences
统计信息
- 总下载量: 73
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-08-20