Tried to fix path problem in the master db

This commit is contained in:
Daniel Vestøl committed 2018-06-28 15:34:31 +02:00
1 parent cf0c3b012a
commit 6962324a45
2 files changed
+8 -2

No files matched your search

+5 -1
View File
@@ -218,7 +218,11 @@ app.get('/metrics', (req, res) => {
var Datastore = require('nedb');
db = {};
var LinvoDB = require("linvodb3");
LinvoDB.dbPath = path.resolve(config.databaseDirectory, "/linvodb/");
// TODO: This breaks. databaseDirectory is either "database" or "./database". `LinvoDB.dbPath = "./database/linvodb/";` is the old working version.
LinvoDB.dbPath = path.resolve(config.databaseDirectory, "linvodb");
// LinvoDB.dbPath = "./database/linvodb/";
// database for items in system
// db.items = new Datastore({ filename: 'database/items.db', autoload: true });