better config / install from cli / allow_registration
This commit is contained in:
@@ -1,5 +1,24 @@
|
||||
const argv = require('yargs').argv
|
||||
const path = require('path')
|
||||
const config_path = path.resolve(argv.config || './config.js')
|
||||
// const argv = require('yargs').argv
|
||||
// const path = require('path')
|
||||
// const fs = require('fs')
|
||||
|
||||
module.exports = require(config_path)
|
||||
// const config_path = path.resolve(argv.config || './config.js')
|
||||
|
||||
// let user_config
|
||||
// if (fs.existsSync(config_path)) {
|
||||
// user_config = require(config_path)
|
||||
// }
|
||||
|
||||
// const config = {
|
||||
// baseurl: 'PLEASE CONFIGURE YOUR BASEURL!',
|
||||
// server: {
|
||||
// host: 'localhost',
|
||||
// port: 3000
|
||||
// },
|
||||
// secret: '',
|
||||
// db: {
|
||||
// dialect: 'sqlite'
|
||||
// }
|
||||
// }
|
||||
|
||||
// module.exports = Object.assign( config, user_config )
|
||||
|
||||
Reference in New Issue
Block a user