Commit graph

60 commits

Author SHA1 Message Date
2fb52df7c8 Add --no-interaction argument 2020-12-12 12:29:02 +00:00
129857be92 Update Composer on the web server
References 
2020-12-08 17:01:03 +00:00
8382d4df36 Remove new-www subdomain 2020-12-02 07:56:54 +00:00
7b11bb43f6 Split web and DB onto different servers 2020-12-01 23:12:58 +00:00
26c1138139 Remove command to get a database from the server 2020-11-02 01:20:27 +00:00
b83317634f Move ansible.cfg into the tools directory 2020-10-08 19:38:30 +01:00
ed98118652 Run database updates before importing config
References 
2020-10-08 18:29:00 +01:00
e1e8a54b36 Use npm ci instead of npm install 2020-09-15 22:15:00 +01:00
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 
2020-09-09 08:43:34 +01:00
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 
2020-09-04 20:23:07 +01:00
061b1177f5 Fix config names 2020-09-04 19:18:25 +01:00
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
8761f9c4cc Revert "Build talk slides during deploy"
This reverts commit 5ae79ffa6e.
2020-08-12 21:16:44 +01:00
5ae79ffa6e Build talk slides during deploy 2020-08-12 18:19:04 +01:00
6f680ddf35 Add "Working with Workspace" slides 2020-08-11 22:34:00 +01:00
f488b5c023 Automatically create tweets for new posts 2020-07-19 20:15:44 +01:00
1241ac3277
Use the release version for Drupal's deployment indentifier 2020-07-01 23:51:04 +01:00
9dbcf903f4 Ansible: Extract an include for building theme assets 2020-06-17 01:36:06 +01:00
e874475c32 Ansible: Re-organise deployment steps 2020-06-17 01:23:31 +01:00
b83baa4c26 Ansible: prevent showing changed status when not changed 2020-06-17 00:12:31 +01:00
922ac14e6b Ansible: Optimise the autoloader 2020-06-16 23:45:46 +01:00
5ec999e3f2 Re-order deploy steps
Run database changes before importing configuration.

References 
2020-06-12 02:15:52 +01:00
b6f3d6ef91 Update default branch name
Change the default branch for deployments from `master` to `production`.
2020-06-10 22:13:54 +01:00
208d535d95 Add pull-from-prod to Makefile
Add `pull-from-prod` to the Makefile, which downloads a database from
production, imports it and runs the post-import steps.

Fixes 
2020-06-01 12:50:41 +01:00
eecefc49cd Remove reference to old deploy key 2020-05-27 08:38:48 +01:00
14af222f35 Remove deploy keys 2020-05-27 00:50:44 +01:00
60f98037df Set reverse proxy settings for Cloudflare 2020-05-26 22:10:52 +01:00
9e35d8b2a7 Add download database playbook
Fixes 
2020-05-23 14:43:13 +01:00
50ae96c4a5 Split nginx vhosts, re-add default_server 2020-05-22 01:33:26 +01:00
b019d620bd Disallow traffic on port 22 2020-05-22 01:19:13 +01:00
5acab19bab Fix nginx error on reload 2020-05-22 01:18:17 +01:00
a1267ec46c Add certificate for non-www domain too 2020-05-21 01:53:20 +01:00
1fb6bdfb79 Update SSH port 2020-05-20 21:10:16 +01:00
cee084092b Re-order deployment steps
Re-order the deployment steps, ensuring that the Drupal cache is rebuilt
before trying to run the custom Drush command to ensure that it is
found.

References .
2020-05-20 12:22:45 +01:00
ab5849ae5b Run the command during deployment
Run the new command automatically during the deployment, prior to
generating the production CSS.

References 
2020-05-20 11:59:13 +01:00
9f721ef354 Add cron job for Drupal cron 2020-05-19 01:43:32 +01:00
cb99713cad Switch to the real domain
Change from d8.oliverdavies.uk to www.oliverdavies.uk, and add the
non-www redirects too.

References 
2020-05-18 23:41:05 +01:00
9342b36f6d Move images redirect 2020-05-18 23:24:19 +01:00
bcabac9b21 Fix image path 2020-05-18 23:00:16 +01:00
d5d63cc43c Redirect static images to files directory 2020-05-18 22:25:45 +01:00
82049a8433 Update trusted hosts 2020-05-18 22:02:37 +01:00
d0f8653028 Add a live split, export Analytics configuration
Fixes  and 
2020-05-15 00:00:20 +01:00
a2c1c99058 Build theme CSS during deployment
Fixes 
2020-05-14 22:21:58 +01:00
940db194ee Add nodejs and npm to the server
References 
2020-05-14 22:21:58 +01:00
3150c948f0 Update project path on the server 2020-05-13 02:53:17 +01:00
ee0deaeac0 Remove directs from Nginx config
These are now handled by Drupal's redirect module.
2020-05-10 01:44:48 +01:00
314ba711af Stop overriding the config path 2020-05-10 01:44:18 +01:00
3e0bf85ebb
Create main.yml 2020-04-10 09:13:30 +01:00
58d014dbf4 Fix redirects 2020-04-08 14:08:09 +01:00
a231813982 Remove CV page redirect 2020-04-08 11:07:09 +01:00