terminal42 / deployer-recipes
terminal42 deployer recipes
Installs: 6 330
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 8
Forks: 3
Open Issues: 0
Requires
- php: ^8.0|^7.3
- ext-json: *
- justinrainbow/json-schema: ^5.2
- psr/http-message: ^1
- react/http: ^1.5
- symfony/console: ^5
- symfony/polyfill-php80: ^1.22
- symfony/process: ^5
- symfony/yaml: ^5
Requires (Dev)
- pestphp/pest: ^1.0
- phpstan/phpstan: ^0.12.53
- phpunit/php-code-coverage: ^9.2
- phpunit/phpunit: ^9.3
- slevomat/coding-standard: ^6.4
- squizlabs/php_codesniffer: ^3.5
- dev-main
- v7.0.0-rc.4
- v7.0.0-rc.3
- v7.0.0-rc.2
- v7.0.0-rc.1
- v7.0.0-beta.40
- v7.0.0-beta.39
- v7.0.0-beta.38
- v7.0.0-beta.37
- v7.0.0-beta.36
- v7.0.0-beta.35
- v7.0.0-beta.34
- v7.0.0-beta.33
- v7.0.0-beta.32
- v7.0.0-beta.30
- v7.0.0-beta.29
- v7.0.0-beta.28
- v7.0.0-beta.27
- v7.0.0-beta.26
- v7.0.0-beta.25
- v7.0.0-beta.24
- v7.0.0-beta.23
- v7.0.0-beta.22
- v7.0.0-beta.21
- v7.0.0-beta.20
- v7.0.0-beta.19
- v7.0.0-beta.18
- v7.0.0-beta.17
- v7.0.0-beta.16
- v7.0.0-beta.15
- v7.0.0-beta.14
- v7.0.0-beta.13
- v7.0.0-beta.12
- v7.0.0-beta.11
- v7.0.0-beta.10
- v7.0.0-beta.9
- v7.0.0-beta.8
- v7.0.0-beta.7
- v7.0.0-beta.6
- v7.0.0-beta.5
- v7.0.0-beta.4
- v7.0.0-beta.3
- v7.0.0-beta.2
- v7.0.0-beta.1
- v6.8.0
- v6.7.3
- v6.7.2
- v6.7.1
- v6.7.0
- v6.6.0
- v6.5.0
- v6.4.7
- v6.4.6
- v6.4.5
- v6.4.4
- v6.4.3
- v6.4.2
- v6.4.1
- v6.4.0
- v6.3.0
- v6.2.0
- v6.1.0
- v6.0.5
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v6.0.0
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v5.0.0-beta.3
- v5.0.0-beta.2
- v5.0.0-beta.1
- v4.3.4
- v4.3.3
- v4.3.2
- v4.3.1
- v4.3.0
- v4.2.1
- v4.2.0
- v4.1.0
- v4.0.2
- v4.0.1
- v4.0.0
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.11
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v3.0.0-beta.5
- v3.0.0-beta.4
- v3.0.0-beta.3
- v3.0.0-beta.2
- v3.0.0-beta.1
- v3.0.0-beta
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- dev-master
This package is auto-updated.
Last update: 2024-10-26 18:06:39 UTC
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:
contao4-encore.php
– Contao 4 setup with Encore for assets managementcontao4-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
- https://deployer.org/docs/
- https://deployer.org/recipes.html
- https://github.com/eikona-media/deployer-recipes
License
Licensed under the MIT license.