An experimental UI for administering BTAA Geoblacklight JSON documents.
cd ~/Rails/geomg
bundle exec rake geomg:server
Run foreman (background queue)
bundle exec foreman start
Run the BTAA/B1G Geoportal on port 3001
cd ~/Rails/geoportal
bundle exec rails server --port=3001
Open localhost:3000
Run test suite:
RAILS_ENV=test bundle exec rake ci
This basic setup does not preserve postgresql data! When the container is stopped, data will be purged.
# Start a postgres image named "geomg-postgres" on the local interface
# and a password "mysecretpassword"
$ docker run --name geomg-postgres -p127.0.0.1:5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d postgres
Requires installation ofdocker-compose
# Start postgresql with a persistent data volume via docker-compose
$ docker-compose up
Sample config/database.yml
for docker connectivity:
development:
adapter: postgresql
encoding: unicode
database: geomg_development
pool: 5
username: geomg
password: mysecretpassword
hostname: 127.0.0.1
host: 127.0.0.1
port: 5432
$ bundle exec rails db:create
$ bundle exec rails db:migrate
$ RAILS_ENV=test bundle exec rails db:migrate
B1G Geoportal Version v4.13.0 / GEOMG v0.17.1 / GeoBlacklight v4.1.0