1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Change example to use psql

This commit is contained in:
Jari Bakken 2014-10-23 14:14:55 +02:00
parent a12f679ed8
commit cc383eea2c

View File

@ -30,10 +30,12 @@ npm test
5. Generate LB artifact using `scripts/generate-liquibase-artifact` (TODO: make this internal) 5. Generate LB artifact using `scripts/generate-liquibase-artifact` (TODO: make this internal)
### Create a local unleash-db on postgres ### Create a local unleash-db on postgres
´´´sql ´´´bash
$ psql postgres <<SQL
CREATE USER unleash_user WITH PASSWORD 'passord'; CREATE USER unleash_user WITH PASSWORD 'passord';
CREATE DATABASE unleash; CREATE DATABASE unleash;
GRANT ALL PRIVILEGES ON DATABASE unleash to unleash_user; GRANT ALL PRIVILEGES ON DATABASE unleash to unleash_user;
SQL
´´´ ´´´
Then set up your DATABASE_URI env.var: Then set up your DATABASE_URI env.var: