jihel / deployment-bundle
Deployment plugin for symfony2
Installs: 208
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jihel/deployment-bundle
Requires
- php: >=5.3.3
- symfony/symfony: >=2.4
This package is not auto-updated.
Last update: 2025-09-27 21:50:37 UTC
README
Simple bundle to run multiple commands at once for deployment
1- Install
Add plugin to your composer.json require:
{
"require": {
"jihel/deployment-bundle": "dev-master",
}
}
or
php composer.phar require jihel/deployment-bundle
Add bundle to AppKernel.php
public function registerBundles()
{
$bundles = array(
...
new Jihel\Plugin\DeploymentBundle\JihelPluginDeploymentBundle(),
);
}
2- Configure your config.yml
Add commands to your config.yml in the exact order you want them to be executed:
jihel_plugin_deployment:
commands:
- "php app/console cache:clear --env=prod"
- "php app/console assets:install web/"
- "php app/console assetic:dump --force --env=prod"
- "php app/console fos:js-routing:dump"
3- Usage
Simply run the command:
php app/console jihel:plugin:deploy
4- Thanks
Thanks to me for giving my free time doing class for lazy developers. You can access read CV here