diff --git a/config/default.json b/config/default.json index 7784b81..05ccda0 100644 --- a/config/default.json +++ b/config/default.json @@ -27,7 +27,7 @@ "basePath": "/photos", "facesPath": "./pictures/face-data", "sessions": { - "db": "sessions.db", + "db": "db/sessions.db", "store-secret": "234j23jffj23f!41$@#!1113j3" } } diff --git a/server/app.js b/server/app.js index de34088..5526751 100755 --- a/server/app.js +++ b/server/app.js @@ -91,7 +91,7 @@ app.use(function(req, res, next){ }); }); -const dbPath = { ...config.get("sessions.db") }; +let dbPath = { ...config.get("sessions.db") }; let configPath = process.env.NODE_CONFIG_DIR; if (configPath) { configPath = configPath.replace(/config/, '');