Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 980 Bytes

DEVELOPER.md

File metadata and controls

37 lines (22 loc) · 980 Bytes

Initial Setup

Database

Default commands to set up pgsql for gokb follow:

sudo -u postgres psql postgres


psql (9.5.4)
Type "help" for help.

postgres=# CREATE DATABASE gokb;
CREATE DATABASE
postgres=# CREATE USER knowint WITH PASSWORD 'knowint';
CREATE ROLE
postgres=# GRANT ALL PRIVILEGES ON DATABASE gokb to knowint;
GRANT
\q

Connect with

psql -h localhost -U knowint gokb

Testing

In order to test in an environment comparable to deployment, gokb uses postgres as it's test database. Use the procedures in InitialSetup above to also confiure an gokb database called gokbtest. Note that the test configuration for integration and functional tests are create-drop meaning that the DB is dropped after the tests have run.

Devs should NOT run "grails test-app" as this seems to create conflicts in some systems, instead test separately:

  • grails test-app unit:
  • grails test-app integration:
  • grails test-app functional: