Download the PHP package webtown/deployer-recipes without Composer
On this page you can find all versions of the php package webtown/deployer-recipes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package deployer-recipes
Install
Add composer:
This version using Deployer 5.x .
Bundle Commands
Init
You or your organization can register custom deploy.php template file. The template can create other files also! The command find all template service, which has webtown_deployer.template
tag.
- Create your own
DeployerTemplatesBundle. - Create a container directory in the Resources directory:
Resources/Template/mySymfonyDeployerTemplateStructure -
Build your additional file structure:
- Create
MySymfonyDeployerTemplatetemplate class to the/Templatedirectory:
Recipes
Symfony extra
Add new tasks:
database:raw-create: Try to create database if not exists (from command line, without doctrine!) You can enable it with theenable_mysql_database_createdeploy:init-parameters-yml: Ask the parameters.database:migrate:rollback: Migration rollback. You have to set theuse_database_migration_strategytrue!deploy:force-cache-clean: Force cache clean. Private!
Kunstmaan
Kunstmaan specific settings. Include the vendor/webtown/deployer-recipes/recipes/kunstmaan.php file after symfony.php or symfony3.php recipe:
Make the config file:
Then:
Rollback:
Load fixtures
This will delete the whole database and rebuild it!
You can enable on each server with the load_fixtures parameter! Default value is false.
Maintenance
Add maintenance function, you can lock or unlock the site. You need a maintenance template html. The default path is defined in maintenance_template parameter. Default value is maintenance.html.tpl or app/Resources/views/maintenance.html file in Symfony projects.
- Create an
maintenance.html.tplorapp/Resources/views/maintenance.html. This file will see users during the maintenance. -
Configure the webserver. If
maintenance.htmlexists in the document root, force show this file with 503 status!-
Apache eg:
- Nginx eg:
-
- Register the tasks (use
beforeandafter)
deploy.php file:
Console commands:
All versions of deployer-recipes with dependencies
symfony/symfony Version ~3.0
deployer/deployer Version ~5.1.3
symfony/twig-bundle Version ~3.0