Run prettier

This commit is contained in:
Oliver Davies 2020-03-14 21:58:20 +00:00
parent e4444b405a
commit 602a01f0c7
5 changed files with 68 additions and 16 deletions

View file

@ -3,10 +3,29 @@ title: Deploying PHP applications with Ansible, Ansible Vault and Ansistrano
url: https://www.oliverdavies.uk/talks/deploying-php-ansible-ansistrano
tags: [ansible, php]
---
Great! Youve built your website, 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 which is not ideal.
As well provisioning and maintaining your server configuration and running commands, you can also use [Ansible](https://www.ansible.com) to deploy your PHP application - leveraging relevant Ansible modules such as Git and Composer, custom Ansible roles, [Ansible Vault](https://docs.ansible.com/ansible/latest/user_guide/vault.html) for managing secrets, and features such as idempotency out of the box to build a simple deployment playbook.
Great! Youve built your website, 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 which is
not ideal.
We can then extend that and make it more robust by adding [Ansistrano](https://ansistrano.com) - a port of [Capistrano](https://capistranorb.com) - which adds extra features such as storing multiple builds for each project and the ability to roll-back if needed, customising your build steps using built-in hooks, multi-stage environments and more.
As well provisioning and maintaining your server configuration and running
commands, you can also use [Ansible](https://www.ansible.com) to deploy your PHP
application - leveraging relevant Ansible modules such as Git and Composer,
custom Ansible roles,
[Ansible Vault](https://docs.ansible.com/ansible/latest/user_guide/vault.html)
for managing secrets, and features such as idempotency out of the box to build a
simple deployment playbook.
I've been using Ansible and Ansistrano to deploy a variety of PHP projects - including Drupal 7 & 8, Symfony, Laravel and Sculpin, as well as basic HTML websites, and found it to be very flexible and easy to install and use, and by the end of this talk we will have a fully working deployment playbook, deploying real code onto a real server.
We can then extend that and make it more robust by adding
[Ansistrano](https://ansistrano.com) - a port of
[Capistrano](https://capistranorb.com) - which adds extra features such as
storing multiple builds for each project and the ability to roll-back if needed,
customising your build steps using built-in hooks, multi-stage environments and
more.
I've been using Ansible and Ansistrano to deploy a variety of PHP projects -
including Drupal 7 & 8, Symfony, Laravel and Sculpin, as well as basic HTML
websites, and found it to be very flexible and easy to install and use, and by
the end of this talk we will have a fully working deployment playbook, deploying
real code onto a real server.