Animated Deployment with Ansistrano


What you'll be learning

Ok, your app is created and it's time to deploy! But how!?

Sure, there are many tools for deployment... but some are too simple... and others are beasts to setup. Instead, try Ansistrano: a powerful deployment tool built on top of Ansible that can get your site deployed quickly and safely:

  • Up and running with Ansitrano as an Ansible role
  • The Ansistrano workflow and versioned file structure
  • Shared files between releases
  • Executing Composer
  • Symfony deployment specifics: running migrations, fixing permissions, etc
  • Rolling back

Your Guides

Victor Bocharsky Ryan Weaver

Buy Access

Questions? Conversation?

  • 2017-10-04 Victor Bocharsky

    Hey Pad ,

    I agree with Ryan. But if you're interested in deploying with PHP, you can take a look at It's newer than Deployer, but could be interested in Symfony projects. But one more time, Ansible does its job very well, so Ansistrano is more powerful than those tools, and my favorite feature in Ansible is that I can see what tasks were changed and what were skipped, i.e. did nothing on the server. Idempotency of tasks is really cool to have out of the box.


  • 2017-10-03 weaverryan

    Yo Pad!

    Great question! Actually, we may very well cover multiple deployment methods here on KnpU... because there are a lot of great ones! I have limited hands-on knowledge at this point of Deployer and Envoy, but here's what I'll say:

    * Ansistrano: great because it leverages Ansible, so you have a lot of built-in features from Ansible (and you can re-use your Ansible knowledge). Infinitely flexible
    * Deployer: Is not built on top of a system like Ansible, but is specific to PHP, which is nice. Also, writing your deploy in PHP and getting PHP auto-complete is awesome. For me, that's the #1 reason to use Deployer
    * Envoy: I think this makes most sense if you know and like the Blade syntax (I don't know it, and don't really like the way it looks). But, I'm certain this works well, as do most things that Taylor Otwell creates. Envoyer (a SAAS built on Envoy) gives you a really nice GUI to make using Envoy even better.

    For me, out of these 3, I like Ansistrano because I know Ansible really well. But, the PHP syntax of Deployer calls to me... :)


  • 2017-10-03 Pad

    Thank you both!
    It could be interesting to give some info about the reason we need another tool. What about
    Maybe just a word about Envoy / Deployer / Ansistrano, strengths and weakness of each and how to choose?

  • 2017-09-22 Victor Bocharsky

    Hey highermath ,

    Yes! And it is *inevitable* because we have already recorded a few chapters! So I think we'll start releasing this course the next week.


  • 2017-09-21 highermath

    Is this still going to happen?

  • 2017-07-13 Victor Bocharsky

    Hey Patrick,

    It's on early planning stage and we still have no precise release date yet, but we're working on it right now. I *think* it will be released in 1-2 months.

    Thanks for the interest and your patience ;)


  • 2017-07-12 Patrick van Beck

    When will this series be released? I am really looking forward to it :)) Good job!