summaryrefslogtreecommitdiffstats
path: root/backend
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
parent81573cd2c7d7d7a5f7237c4283ba97a55300aa4d (diff)
Add prod env
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