Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 907 Bytes

quickstart.linux.md

File metadata and controls

43 lines (33 loc) · 907 Bytes

Linux

Install Postgresql-11 on your Linux manually.

Install SDKMAN! to install db migrations:

brew install groovy

Install groovy using SDKMAN! to run db migrations:

curl -s "https://get.sdkman.io" | bash
sdk install groovy

(optional) feel free to specify your database credentials with if you're using some non-default ones:

export PGDATABASE=postgres
export PGUSER=postgres
export PGPASSWORD=""
export PGHOST=localhost
export PGPORT=5432

run script to create apiko_courses role, apiko_courses database compile and install all the extensions:

migrations/bootstrap/bootstrap.sh

and then in a fresh shell update db migrations:

cd migrations/schema
./liquibase.groovy update

If you want to rollback migrations - run:

cd migrations/schema
./liquibase.groovy rollbackCount 9000