Biodiversity Heritage Library Scientific Names Index
Creates an index of scientific names occurring in the collection of literature
in Biodiversity Heritage Library
Usage
Linux
Database Migrations
Install migrate
go get -u -d github.com/golang-migrate/migrate/cli github.com/lib/pq
go build -tags 'postgres' -o $GOPATH/bin/migrate github.com/golang-migrate/migrate/cli
Create migration
migrate create -ext pgsql -D db NAME
Run commands
migrate -database postgres://localhost:5432/database up 2
Commands
create [-ext E] [-dir D] NAME
: Create a set of timestamped up/down migrations titled NAME, in
directory D with extension E
version
: current migration version
up [N]
: up N migrations
down [N]
: down N migrations
drop
: nuke database
Testing
docker-compose build
docker-compose up
To update all dependencies change LAST_FULL_REBUILD line in Docker file and
return docker-compose build