Commit graph

97 commits

Author SHA1 Message Date
Oliver Davies 73086d4ab3 ci: update deployment steps 2021-12-08 21:36:53 +00:00
Oliver Davies a7bedc1e5e ci: change user in Drupal permissions tasks 2021-12-08 19:06:21 +00:00
Oliver Davies 2a85a9ba65 fix: nginx error when loading the site
From https://stackoverflow.com/a/68314973:

> Increasing the fastcgi_buffer_size in nginx config helped, but it
seems more like a suppression the problem, not a treatment.

> A better solution is to disable php-fpm to send logs by FastCGI. Found
it can be made by setting fastcgi.logging=0 in php.ini (by default it is
1). php docs.

> After changing it to 0, the problem goes away and nginx logs looks much
cleaner docker logs nginx:

Fixes: #463
2021-12-08 10:58:39 +00:00
Oliver Davies c135dd5d2a Revert "build(docker): update PHP to 8.0"
This reverts commit ce57c55bbf.
2021-12-04 21:26:30 +00:00
Oliver Davies 124f78a74c build(docker): fix Hadolint errors 2021-12-03 08:48:09 +00:00
Oliver Davies 2eda6d0f0d fix: become the root user 2021-11-28 22:02:17 +00:00
Oliver Davies 4c1bda0cfe chore: update for AWS 2021-11-28 21:29:16 +00:00
Oliver Davies bfb83010bc chore: upgrade repo URL 2021-11-28 20:58:52 +00:00
Oliver Davies ce57c55bbf build(docker): update PHP to 8.0 2021-11-27 17:36:30 +00:00
Oliver Davies 0cf8a3157a Add the missing vault variable
Add the missing vault variable that was causing the deployment to fail
during the Ansible London presentation. :)
2021-05-25 20:30:27 +01:00
Oliver Davies 1dc9058117 Add pre-push Git hooks [ci skip] 2021-05-22 14:37:49 +01:00
Oliver Davies 18b6f3a7c5 Use a local MySQL database [ci skip] 2021-05-18 08:41:52 +01:00
Oliver Davies cf58cc6d23 Rename directory [ci skip] 2021-05-18 07:38:40 +01:00
Oliver Davies 65c100a812 Tidy up Docker environment [ci skip] 2021-05-09 21:52:30 +01:00
Oliver Davies 5afcb964dd Fix the Composer version
Even though Composer v2 was being pulled from the Composer Docker image,
Composer v1 was still being used.

Because I've added the `/app/bin` path to `$PATH`, a version in
`/app/bin/composer` was being used. The simplest way that I can fix
this is re-ordering the variable so that the path is added after the
originals and the Composer version in `/usr/bin/composer` is used.
2021-04-21 21:07:49 +01:00
Oliver Davies 725bd5380e Move packages into the dev stage 2021-04-21 17:06:18 +01:00
Oliver Davies 64df467527 Re-order Dockerfile steps 2021-04-21 13:43:00 +01:00
Oliver Davies 09c9e52db2 Use Composer 2 2021-04-21 13:43:00 +01:00
Oliver Davies c9de9c1d54 Extract xdebug_version argument 2021-04-21 13:43:00 +01:00
Oliver Davies c712da3079 Copy patches so that they can be applied 2021-04-21 13:43:00 +01:00
Oliver Davies ff4b027814 Re-add Ansible and DigitalOcean 2021-03-27 00:20:52 +00:00
Oliver Davies f219d81d38 Remove Ansible playbooks and roles 2021-02-11 08:53:16 +00:00
Oliver Davies 29d88893fa Add Docker and Docker Compose 2021-02-11 08:53:15 +00:00
Oliver Davies dcf180a651 Fix Plausible loading for authenticated users
Return early within the Plausible if the user is authenticated so that
it doesn't pick up when I'm adding or editing content on the site.

Though the role is configured in the Plausible module's admin form, the
conditions in the code don't exclude it. I'll look into this further and
submit a patch upstream along with some tests.

References #350
2021-01-30 17:22:28 +00:00
Oliver Davies 7204e2c5e8 Add integromat webhook URL
Add the integromat webhook URL to the Ansible Vault and also to the
generated Drupal settings file that Ansible generates, and the
opdavies_blog module configuration.

References #340
2021-01-22 02:30:26 +00:00
Oliver Davies cd9453096e Re-enable database updates on deployment 2021-01-22 01:11:47 +00:00
Oliver Davies 2b98b8624e Remove DigitalOcean playbook 2021-01-13 20:12:50 +00:00
Oliver Davies 29a7af6e36 Update server IP address 2021-01-13 20:12:28 +00:00
Oliver Davies f42eb27e78 Use localhost for the database server 2021-01-07 20:40:51 +00:00
Oliver Davies f6ccdd3bcb Disable failing deployment step
References #337
2021-01-07 20:37:10 +00:00
Oliver Davies 4d3cf095fd Revert "Update Composer on the web server"
This reverts commit 129857be92.
2021-01-07 20:32:20 +00:00
Oliver Davies 350cde177c Revert "Add --no-interaction argument"
This reverts commit 2fb52df7c8.
2021-01-07 20:32:18 +00:00
Oliver Davies c4bf400ca6 Remove the separate db server 2021-01-06 10:11:21 +00:00
Oliver Davies 9c6a9c6b47 Give the server both the web and db roles 2021-01-06 10:11:05 +00:00
Oliver Davies 4bd0376dd1 Update tweet webhook URL and variable name 2021-01-04 01:20:48 +00:00
Oliver Davies e2d7f08893 Rename variable to make it more generic 2021-01-01 21:46:12 +00:00
Oliver Davies 26b9e3a84d Change bin directory to bin 2020-12-24 11:06:56 +00:00
Oliver Davies 2fb52df7c8 Add --no-interaction argument 2020-12-12 12:29:02 +00:00
Oliver Davies 129857be92 Update Composer on the web server
References #305
2020-12-08 17:01:03 +00:00
Oliver Davies 8382d4df36 Remove new-www subdomain 2020-12-02 07:56:54 +00:00
Oliver Davies 7b11bb43f6 Split web and DB onto different servers 2020-12-01 23:12:58 +00:00
Oliver Davies 26c1138139 Remove command to get a database from the server 2020-11-02 01:20:27 +00:00
Oliver Davies b83317634f Move ansible.cfg into the tools directory 2020-10-08 19:38:30 +01:00
Oliver Davies ed98118652 Run database updates before importing config
References #245
2020-10-08 18:29:00 +01:00
Oliver Davies e1e8a54b36 Use npm ci instead of npm install 2020-09-15 22:15:00 +01:00
Oliver Davies fd274cda97 Remove references to slides
This is not being done with Nginx. I've pushed the slides to Netlify and
added CNAME records in Cloudflare to serve them as subdomains as
oliverdavies.uk in the same way that I am for Rebuilding Bartik,
Rebuilding Acquia etc.

Fixes #221
2020-09-09 08:43:34 +01:00
Oliver Davies 1781a2cf01 Add Ansible role to fix Drupal file permissions
Add a new `drupal-permissions` Ansible role that resets the file and
directory permissions to match the ones described in
https://www.drupal.org/node/244924.

This will later be released to Ansible Galaxy, but for now it will
remain in this repository until the required changes are made and the
appropriate documentation is added.

Fixes #191
2020-09-04 20:23:07 +01:00
Oliver Davies 061b1177f5 Fix config names 2020-09-04 19:18:25 +01:00
Oliver Davies 4e8c464dc8 Re-order deployment steps
Ensure that the configuration import is run before the database updates,
so that any new fields are created that are needed within the update
steps such as `field_type` on the talk node type.
2020-08-21 12:06:24 +01:00
Oliver Davies 8761f9c4cc Revert "Build talk slides during deploy"
This reverts commit 5ae79ffa6e.
2020-08-12 21:16:44 +01:00