Files
breccia-mapper/deploy
me 50f5363b69 [FIX] Move site URL settings out of constance to allow access for CORS
CORS options require access to these settings, so they must be set before deployment
2023-02-01 23:17:24 +00:00
..
2023-01-11 13:42:45 +00:00
2023-01-19 23:29:19 +00:00

BRECcIA Mapper Deployment

BRECcIA Mapper is intended to be deployed using Ansible and Docker. It has been tested on RHEL7 and RHEL8, though with minor modification to the Ansible playbook it is expected to deploy correctly on other Linux variants (e.g. Ubuntu).

Development Deployment

Prerequisites:

Using Vagrant, we can create a virtual machine and deploy BRECcIA Mapper using the same provisioning scripts as a production deployment. To deploy a local development version of BRECcIA Mapper inside a virtual machine, use:

vagrant up

Once this virtual machine has been created, to redeploy use:

vagrant provision

And to stop the virtual machine use:

vagrant halt

For further commands see the Vagrant documentation.

Production Deployment

Prerequisites:

To perform a production deployment of BRECcIA Mapper:

  1. Copy the inventory.example.yml to inventory.yml
  2. Edit this file:
  • Use your server's hostname instead of example.com
  • Disable debugging
  • Replace the secret key with some text known only to you
  1. Run the Ansible playbook with this inventory file using:
ansible-playbook playbook.yml -i inventory.yml -K -k -u <SSH username>

This will ask for your SSH and sudo passwords for the server, before deploying. To redeploy updates, the same command can be run again - it's safe to redeploy on top of an existing deployment.