From 4a5bda073767903521ddf95f8cd647e3cec45cbd Mon Sep 17 00:00:00 2001 From: Vince van Noort Date: Thu, 21 Dec 2017 14:43:17 +0100 Subject: [PATCH] fix(config): use DB_DATABASE env var of static sqlite filename * SQLite should reference the filename from the .env file instead of development.sqlite * Update database.js --- config/database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.js b/config/database.js index 0105a15..2affdc0 100644 --- a/config/database.js +++ b/config/database.js @@ -29,7 +29,7 @@ module.exports = { sqlite: { client: 'sqlite3', connection: { - filename: Helpers.databasePath('development.sqlite') + filename: Helpers.databasePath(`${Env.get('DB_DATABASE', 'development')}.sqlite`) }, useNullAsDefault: true },