This commit is contained in:
Typicode
2015-06-16 01:45:25 +02:00
parent c3e092ca96
commit cd710213e0
8 changed files with 155 additions and 107 deletions

View File

@ -32,6 +32,10 @@ var argv = yargs
routes: {
alias: 'r',
description: 'Load routes file'
},
id: {
description: 'Set database id property (e.g. _id)',
default: 'id'
}
})
.help('help').alias('help', 'h')
@ -118,6 +122,10 @@ function start (object, filename) {
}
server.use(router)
// Custom id
router.db._.id = argv.id
server.listen(port, argv.host)
}