diff --git a/.circleci/config.yml b/.circleci/config.yml index 0ee7f2547..397b6b828 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,4 +28,5 @@ jobs: - node_modules key: 'deps-{{ checksum "package.json" }}' - run: 'node -v' + - run: 'dockerize -wait tcp://localhost:5432 -timeout 1m' - run: 'npm run test:server' \ No newline at end of file diff --git a/knexfile.js b/knexfile.js index 55313cca2..8f8d59efd 100644 --- a/knexfile.js +++ b/knexfile.js @@ -20,6 +20,8 @@ function walk( dir ) { let migrationDirs = walk( './modules' ) +console.log( 'my db is ' + process.env.DATABASE_URL ) + module.exports = { test: { client: 'pg',