Find a file
2020-05-14 10:02:36 +01:00
.github/workflows Add testdox option 2020-05-13 17:40:35 +01:00
.idea Remove duplicate Collection library 2020-05-09 22:35:53 +01:00
assets/images Update DrupalCamp image 2020-02-14 11:53:39 +00:00
bin Add phpunit.xml.dist 2020-05-13 03:10:01 +01:00
config/default Change the default theme 2020-05-14 10:02:36 +01:00
tools/ansible Update project path on the server 2020-05-13 02:53:17 +01:00
web Change the default theme 2020-05-14 10:02:36 +01:00
.gitignore Add ci.yml 2020-05-13 03:25:45 +01:00
.php-version Use Symfony server for local development 2020-04-10 10:48:35 +01:00
ansible.cfg Set project specific path for Ansible roles 2020-05-09 23:35:25 +01:00
composer.json Remove duplicate Collection library 2020-05-09 22:35:53 +01:00
composer.lock Remove duplicate Collection library 2020-05-09 22:35:53 +01:00
docker-compose.yaml Use Symfony server for local development 2020-04-10 10:48:35 +01:00
php.ini Use Symfony server for local development 2020-04-10 10:48:35 +01:00
phpstan.neon Add and use a custom Node class 2020-05-09 22:31:35 +01:00
phpunit.xml.dist Add phpunit.xml.dist 2020-05-13 03:10:01 +01:00
README.md Add a note about talks ordering 2020-05-13 15:22:22 +01:00

oliverdavies.uk

Hosting

This site is hosted on a DigitalOcean droplet, which was created using Ansible (see tools/ansible/digitalocean.yml).

Provisioning

To re-provision the server:

# Download the required roles
ansible-galaxy install -r tools/ansible/requirements.yml --force

# Run the provision playbook
ansible-playbook tools/ansible/provision.yml

Deploying

Deployments for this site for managed with Ansible and Ansistrano. Ansible Vault is used to manage sensitive information like database passwords.

Deployments are triggered automatically when changes are pushed to GitHub, and are performed via CircleCI.

To run a deployment manually, run ansible-playbook tools/ansible/deploy.yml --ask-vault-pass. The Vault password is stored in LastPass.

Migrating data into the website

To view the status of all the migrations:

bin/drush.sh migrate:status

To run all the migrations:

bin/drush.sh migrate:import --all

To run all the migrations and update the existing migrated content:

bin/drush.sh migrate:import --all --update

Talks ordering

In order to keep the talks page in the correct order, based on when the next time a talk is being given, the created date for the talk node is automatically updated on each save to match the date of the most future event for that talk.

The view is then sorting the talk nodes based on their created date.