PHPackages                             webtown/deployer-recipes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. webtown/deployer-recipes

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

webtown/deployer-recipes
========================

Some Deployer recipes.

2.0.0(8y ago)0384MITPHPPHP ~7.0

Since Feb 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/webtown-php/deployer-recipes)[ Packagist](https://packagist.org/packages/webtown/deployer-recipes)[ RSS](/packages/webtown-deployer-recipes/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (5)Versions (21)Used By (0)

Install
=======

[](#install)

Add composer:

```
    "webtown/deployer-recipes": "~2.0.0"

```

> This version using Deployer **5.x** .

Bundle Commands
===============

[](#bundle-commands)

Init
----

[](#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.

1. Create your own `DeployerTemplatesBundle`.
2. Create a container directory in the Resources directory: `Resources/Template/mySymfonyDeployerTemplateStructure`
3. Build your additional file structure:

```
Resources
  '- Template
       '- mySymfonyDeployerTemplateStructure
            |- app
            |    '- config
            |         '- Deployer
            |              |- server1_key.pub
            |              '- servers.yml
            |
            '- deploy.php

```

4. Create `MySymfonyDeployerTemplate` template class to the `/Template` directory:

```
