This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_talks/deploying-php-fabric.md

39 lines
1.8 KiB
Markdown
Raw Normal View History

2018-05-09 22:24:08 +00:00
---
title: Deploying PHP Applications with Fabric
2019-03-04 00:05:04 +00:00
description: How to use Fabric, a Python command line based library, to deploy your PHP applications.
2018-05-09 23:17:07 +00:00
speakerdeck:
id: c147618ce07546ca92f92983c52d6a41
ratio: '1.77777777777778'
2018-05-09 22:24:08 +00:00
url: https://speakerdeck.com/opdavies/deploying-php-applications-with-fabric
tags: [meetup, conference, php, fabric]
meta:
og:
title: Deploying PHP Applcations with Fabric
description: "You've built your PHP application, now learn how to deploy it with Fabric."
type: website
image:
2018-09-04 18:58:54 +00:00
url: /images/talks/deploying-php-fabric.png
2018-05-09 22:24:08 +00:00
width: 2560
height: 1440
type: image/png
events:
2018-06-20 23:13:20 +00:00
- event: nomad_php
2019-02-13 01:10:14 +00:00
date: 2017-04-20
2018-05-09 23:17:07 +00:00
time: '19:00 (CET)'
type: 'Lightning talk'
- event: phpsw
2019-02-13 01:10:14 +00:00
date: 2017-09-13
2018-05-10 06:07:59 +00:00
joindin: https://joind.in/talk/a5ff3
2018-06-20 23:13:20 +00:00
- event: phpnw_17
2019-02-13 01:10:14 +00:00
date: 2017-10-01
2018-05-09 23:17:07 +00:00
time: '09:00 - 09:45'
2018-05-10 06:07:59 +00:00
joindin: https://joind.in/talk/4e35d
2018-05-09 22:24:08 +00:00
---
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][1] 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.
[1]: http://www.fabfile.org