oliverdavies.uk/source/_presentations/deploying-php-fabric.md

1.7 KiB
Raw Permalink Blame History

title description speakerdeck meta events
Deploying PHP Applications with Fabric How to use Fabric, a Python command line based library, to deploy your PHP applications.
id ratio url
c147618ce07546ca92f92983c52d6a41 1.77777777777778 https://speakerdeck.com/opdavies/deploying-php-applications-with-fabric
og
image
url width height type
%site.assets.url%/assets/images/talks/deploying-php-fabric.png 2560 1440 image/png
name date time url online
Nomad PHP 2017-04-20 19:00 (CET) https://nomadphp.com true
name location url date joindin
PHP South West Bristol, UK https://phpsw.uk 2017-09-13 https://joind.in/talk/a5ff3
name location date time url joindin
PHP North West 2017 Manchester, UK 2017-10-01 09:00 - 09:45 http://conference.phpnw.org.uk/phpnw17 https://joind.in/talk/4e35d

Youve built your application, and now you just need to deploy it. There are various ways that this could be done from (S)FTP, to SCP and rsync, to running commands like “git pull” and “composer install” directly on the server (not recommended).

My favourite deployment tool of late is Fabric a Python based command line tool for running commands locally as well as on remote servers. Its language and framework agnostic, and unopinionated so you define the steps and workflow that you need from a basic few-step deployment to a full Capistrano style zero-downtime deployment.

This talk will cover some introduction to Fabric and how to write your own fabfiles, and then look at some examples of different use case deployments for your PHP project.