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
This commit is contained in:
Vince van Noort 2017-12-21 14:43:17 +01:00 committed by Harminder
parent eb9afd9377
commit 4a5bda0737

View File

@ -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
},