gregsimsic / deployer-recipes
Deployer recipes
0.7.4
2020-04-21 20:58 UTC
Requires (Dev)
- deployer/deployer: 6.4.5
This package is not auto-updated.
Last update: 2024-10-02 20:11:37 UTC
README
特性
- 部署站点(原子和非原子)
- 同步上传
- 将MySQL数据库从远程或本地拉取/推送
需求
安装
运行 composer require gregsimsic/deployer-recipes
。
确保将配方文件包含在您的 deploy.php
中
require 'vendor/gregsimsic/deployer-recipes/recipes/db.php';
配置
编辑 deploy.yml。请参阅 /lib/yamls 中的示例。
可用任务
推送数据库:dep db:push prod
拉取数据库:dep db:pull prod
上传文件--从列表中选择:dep sync:up
下载文件--从列表中选择:dep sync:down
上传所有文件:dep sync:down
参考
Craft
- https://gist.github.com/mtwalsh/fce3c4aa416996e5900e8ac9f471dd6c
- https://www.enovate.co.uk/blog/2018/07/23/atomic-deployment-with-deployer
Laravel
通用
- https://antonydandrea.com/deploying-with-deployer/
- https://medium.com/@Alibaba_Cloud/automating-your-php-application-deployment-with-php-deployer-b00c1dc64d4a https://codereviewvideos.com/course/deployer-easy-php-deployment/video/running-your-first-deployer-deploy
共享服务器部署
- https://discourse.roots.io/t/heres-deployer-recipes-to-deploy-bedrock/9896
- https://github.com/FlorianMoser/plesk-deployer