From 4ec2c393a4248faa583c01b3283bde2436580372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Sat, 10 Feb 2018 15:49:10 +0100 Subject: [PATCH] fix: add localhost to work on CircleCI --- src/load.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load.js b/src/load.js index 355ffd5..6291ad7 100644 --- a/src/load.js +++ b/src/load.js @@ -9,7 +9,7 @@ async function load({ env, docker, structurePath, knexConfig }) { ? `docker exec -i \`docker-compose ps -q postgres\` psql --username ${ knexConfig.connection.user } ${knexConfig.connection.database} < ${structurePath}` - : `psql --username ${knexConfig.connection.user} ${ + : `psql -h localhost --username ${knexConfig.connection.user} ${ knexConfig.connection.database } < ${structurePath}`