Oliver Davies
58d56220de
Update the ordering of the future talks on the talks page so that upcoming talks are shown in chronological order (soonest first), followed by past talks in reverse chronological order (most recent first). This still uses the `created` date for ordering, which is updated automatically on saving the node to match the furthest future talk, but I may want to move that into a custom node property at some point. Fixes #140 |
||
---|---|---|
.dependabot | ||
.github/workflows | ||
.idea | ||
bin | ||
config | ||
tools/ansible | ||
web | ||
.gitignore | ||
.php-version | ||
ansible.cfg | ||
composer.json | ||
composer.lock | ||
docker-compose.yaml | ||
Makefile | ||
php.ini | ||
phpstan.neon | ||
phpunit.xml.dist | ||
README.md |
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.