How to deploy with Composer, Symfony2 and something like Capistrano?

I am trying to find a convenient workflow for using a deployer like Capistrano with Symfony and Composer.

One of the problems I am facing is that Capistrano requires the project to be in the storage (git) and that it has access to it, but how can I handle it if I use Composer? Composer is the default dependency manager for Symfony 2.1+, and we should not include the provider / in the repo (we specify this in .gitignore).

I have not used Capistrano yet, I can add commands to run on a remote production server, for example: 'composer update nothing' to update the lockfile. But how do I know if it worked? Can this be verified by adding more commands to the recipe?

If you know of any other installers, please let me know.

+4
source share
1 answer

Use capifony . This is a collection of capistrano recipes for Symfony projects. Learn more about this and learn how to use it from white papers: http://capifony.org/

Capifony is supported by the composer. You must enable it manually ( use_composer option).

+7
source

All Articles