1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/scripts/docker-postgres.sh

12 lines
332 B
Bash
Raw Normal View History

2014-12-09 16:36:27 +01:00
#!/bin/bash
export POSTGRES_PASSWORD="uleash"
export 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`
npm install
./node_modules/.bin/db-migrate up
npm test
docker stop $HASH
docker rm $HASH