could listen to unix socket, better conf

This commit is contained in:
lesion
2019-06-10 00:40:37 +02:00
parent d1a56e5135
commit b01f4ef04d
15 changed files with 107 additions and 76 deletions

View File

@@ -4,10 +4,10 @@ const path = require('path')
const Sequelize = require('sequelize')
const config_path = path.resolve(argv.config || './config.js')
const basename = path.basename(__filename)
const config = require(config_path).SECRET_CONF.db
const config = require(config_path)
const db = {}
const sequelize = new Sequelize(config)
const sequelize = new Sequelize(config.db)
fs
.readdirSync(__dirname)