mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
Fix env var name in scripts/docker-postgres.sh
This commit is contained in:
parent
31283a4153
commit
f0517107d5
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export POSTGRES_PASSWORD="uleash"
|
export POSTGRES_PASSWORD="uleash"
|
||||||
export DATABASE_URL=postgres://postgres:unleash@127.0.0.1:15432/postgres
|
export TEST_DATABASE_URL=postgres://postgres:unleash@127.0.0.1:15432/postgres
|
||||||
|
|
||||||
HASH=`docker run -p 127.0.0.1:15432:5432 --name unleash-postgres -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -d postgres:9.3`
|
HASH=`docker run -p 127.0.0.1:15432:5432 --name unleash-postgres -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -d postgres:9.3`
|
||||||
npm install
|
npm install
|
||||||
./node_modules/.bin/db-migrate up
|
DATABASE_URL=$TEST_DATABASE_URL ./node_modules/.bin/db-migrate up
|
||||||
npm test
|
npm test
|
||||||
docker stop $HASH
|
docker stop $HASH
|
||||||
docker rm $HASH
|
docker rm $HASH
|
||||||
|
Loading…
Reference in New Issue
Block a user