summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/knexfile.js16
-rw-r--r--backend/migrations/20200201154548_password-salt.js (renamed from backend/migrations/20200201145548_password-salt.js)0
2 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',
+ },
+ },
};
diff --git a/backend/migrations/20200201145548_password-salt.js b/backend/migrations/20200201154548_password-salt.js
index 217b02b..217b02b 100644
--- a/backend/migrations/20200201145548_password-salt.js
+++ b/backend/migrations/20200201154548_password-salt.js