NaturalHistoryMuseum/data-portal-deployment

Name: data-portal-deployment

Owner: Natural History Museum

Description: Automated deployment tool for the Data Portal

Created: 2017-11-24 16:04:55.0

Updated: 2017-11-24 16:08:07.0

Pushed: 2017-12-07 14:33:17.0

Homepage: null

Size: 13

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Deployment tool for the Data Portal.

Overview

Script loops through all repositories defined in config - default.cfg:main.directory.

If the repository is a CKAN plugin owned by the Natural History Museum organisation, the script pulls either the latest master (for staging / development) or latest release (for production).

CLI

To update all repositories to latest commit on master branch:

oy master

To update all repositories to latest tagged release:

oy release

Note: Repositories without a tagged release are not updated.

To update a single repository by name:

oy -n ckanext-nhm master
Automation

On staging deploy master is run on cron every 5 minutes. If source code changes are detected, Apache WSGI will be restarted so all updates merged into master are automatically deployed onto staging.

On production deploy release and Apache WSGI will need to be manually run.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.