定制 terminal42/deployer-recipes 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

terminal42/deployer-recipes

最新稳定版本:v7.0.0-rc.4

Composer 安装命令:

composer require terminal42/deployer-recipes

包简介

terminal42 deployer recipes

README 文档

README

This repository contains recipes to integrate with deployer.

Installing

composer require deployer/recipes terminal42/deployer-recipes:dev-main@dev --dev 

Usage

Include recipes manually

Include recipes in your deploy.php file:

require 'recipe/contao.php'; require 'recipe/database.php'; require 'recipe/deploy.php'; require 'recipe/encore.php'; // or 'recipe/gulp.php'; require 'recipe/maintenance.php';

Bootstrap file

Copy deploy-hosts.yml to your project root and one of the bootstrap files as your deploy.php file:

  1. contao4-encore.php – Contao 4 setup with Encore for assets management
  2. contao4-gulp.php – Contao 4 setup with Gulp for assets management

Pro Tips

Disable releases

If you would like to disable the releases (e.g. for a dev system) you can do it simply by including the recipe:

require 'recipe/disable-releases.php';

Contao Manager

Although Contao Manager seems to be redundant if the system can be deployed, you may still want to install it e.g. for trakked.io. To do that, simply add the following task to the list:

task('deploy', [ // … 'maintenance:enable', + 'contao:download_manager' // … ])->desc('Deploy your project');

Database Helpers (Restore and release)

This collection provides a tasks to easily restore/release the database dev <-> live unidirectionally.

First, include the database-helpers.php recipe.

You can use the command dep database:retrieve example.com to download a database dump from remote (example.com) and overwrite the local database.

You can use the command dep database:release example.com to overwrite the remote (example.com) datbase with the local one.

Further Reading

License

Licensed under the MIT license.

统计信息

  • 总下载量: 7.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 7
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固