Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update beta.ckan.org and master.ckan.org
There are three ways in which they can be updated:
- Doing nothing. Both sites are updated every midnight UTC time. This is done via a couple of cron jobs using the ansible script described in the next section.
- Using an Ansible script to update the source.
Install Ansible and add the staging server IP to your
/etc/ansible/hostsfile (check if the IP is up to date):
Checkout this gist with the Ansible playbook. The different tasks run are self-explanatory:
Run the playbook with:
ansible-playbook update_source.yml -u amercader -s
If no variables are passed, the site "master" is updated with the latest "master" branch. To update another CKAN site and/or version pass the following variables:
ansible-playbook update_source.yml -u amercader -s --extra-vars="site=beta version=release-v2.1"
- Manually: ssh into the staging server (currently s084), cd into the CKAN source directory (eg /usr/lib/ckan/beta/src/ckan), discard local changes, pull the latest source, rebuild front-end and restart Apache, just as any other source install.