rhapsody-cli
Version:
CLI for RhapsodyJS
94 lines (74 loc) • 2.1 kB
JavaScript
module.exports = {
host: 'localhost',
http: {
port: 4242,
socket: true
},
https: {
enabled: false,
port: 4243,
socket: true
},
methodOverride: {
enabled: false,
attributeName: ''
},
database: {
enabled: true,
defaultAdapter: 'memory'
},
log: {
//Name of the debug level
//For more info about the settings, see WolverineJS documentation: https://github.com/talyssonoc/wolverinejs
level: 'all',
//if undefined, will print to the terminal
output: undefined,
//If true, will print the error stack if an Error object is passed as argument in some log method
printStack: false,
//If true, show the debug level before the message
printLevel: true,
//If true, shows the time the log was logged before the level name
printTime: true,
//If true, show and file and the line number of where the log was called
printFileInfo: true,
//If the logger is using some driver, you should pass here the two
//attributes, like this:
//driver: {
// lib: require(driverName),
// config: driverCOnfig
//}
driver: undefined
},
routes: {
//Controller used when access the app's root
mainController: 'main',
//View used when the user doesn't specify it
mainView: 'index',
//If must be created REST routes for models
allowREST: true
},
globals: {
// Allow to set the models as globals, so you don't need to use Rhapsody.requireModel(modelName)
models: false
},
//If set to true, uploaded files via form will be at req.file
upload: {
enabled: false,
},
compression: {
enabled: true
},
clientModels: {
enabled: true,
adapter: undefined,
destination: 'app/public/models'
},
csrf: {
enabled: false
},
//Enable it if you want that RhapsodyJS run a process to each one
//of your CPUs, making your app more scalable
cluster: {
enabled: false
}
};