diff --git a/config.js b/config.js index e5381ed..5562f02 100644 --- a/config.js +++ b/config.js @@ -32,6 +32,8 @@ } }, + "dotenv": true, + "storage": { "type": "file" }, diff --git a/server.js b/server.js index 30ad521..e79dcd0 100644 --- a/server.js +++ b/server.js @@ -46,8 +46,8 @@ if (!config.storage.type) { var Store, preferredStore; -if (config.storage.password == '.env') { - config.storage.password = process.env.STORAGE_PASSWORD +if (config.dotEnv) { + config.storage.password = process.env.STORAGE_PASSWORD; } if (process.env.REDISTOGO_URL && config.storage.type === 'redis') {