victorteokw/seedgoose

"Please Provide data directory"

Closed this issue · 1 comments

AppData\Roaming\npm\node_modules\seedgoose\lib\index.js:51
throw new Error('Please provide data directory.');

Please help me out.

I solved this error by creating a config file ( .seedgooserc.js) in the base directory and making sure the modelBaseDirectory was set correctly:
// .seedgooserc.js
module.exports = {
modelBaseDirectory: 'app_server/models', // model directory name
models: '**/*.js', // model matcher
data: 'data', // data directory name
db: 'mongodb://localhost:27017/DB-URL' // db connection url
};