summaryrefslogtreecommitdiffstats
path: root/backend/knexfile.js
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@eficode.com>2020-02-05 11:55:43 +0200
committerJan Tuomi <jan.tuomi@eficode.com>2020-02-05 11:55:43 +0200
commit48a60c896d86de9bf76806ca60da35ef9f77259e (patch)
tree65b0dde0506dff1683866e2a5c651fc4aa9cc06b /backend/knexfile.js
parent81573cd2c7d7d7a5f7237c4283ba97a55300aa4d (diff)
Add prod env
Diffstat (limited to 'backend/knexfile.js')
-rw-r--r--backend/knexfile.js16
1 files changed, 16 insertions, 0 deletions
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',
+ },
+ },
};