From 48a60c896d86de9bf76806ca60da35ef9f77259e Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 5 Feb 2020 11:55:43 +0200 Subject: Add prod env --- backend/knexfile.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'backend/knexfile.js') diff --git a/backend/knexfile.js b/backend/knexfile.js index 73d0a10..4984c40 100644 --- a/backend/knexfile.js +++ b/backend/knexfile.js @@ -17,4 +17,20 @@ module.exports = { tableName: 'knex_migrations', }, }, + production: { + client: 'postgresql', + connection: { + host: process.env.DATABASE_HOST, + database: process.env.DATABASE_DB, + user: process.env.DATABASE_USER, + password: process.env.DATABASE_PASSWORD, + }, + pool: { + min: 2, + max: 10, + }, + migrations: { + tableName: 'knex_migrations', + }, + }, }; -- cgit v1.3