summaryrefslogtreecommitdiffstats
path: root/backend/knexfile.js
diff options
context:
space:
mode:
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',
+ },
+ },
};