var path = require('path');
var appDir = path.dirname(require.main.filename);

module.exports={

  db: {
    connector: 'memory',
    file: appDir+'/loopback/data/loopback-data.json',
  }
};

var path = require('path');
var appDir = path.dirname(require.main.filename);
if (require.main.filename.indexOf("cityscope-data-starter")!=-1)
{
  appSuffix = "/loopback/data/loopback-data.json";
}
else {
  appSuffix="/../data/loopback-data.json";
}
module.exports={

  db: {
    connector: 'memory',
    file: appDir+appSuffix,
  }
};

Fix in memory datasource to point to the correct relative directory depending on whether it's called via cityscope-data-starter or the main loopback boot file
Fix in memory datasource to point to the correct relative directory depending on whether it's called via cityscope-data-starter or the main loopback boot file
