gancio/app/db.js
2019-02-26 01:17:52 +01:00

9 lines
244 B
JavaScript

const Sequelize = require('sequelize')
const env = process.env.NODE_ENV || 'development'
const conf = require('../config/config.' + env + '.json')
const db = new Sequelize(conf.db)
// db.sync({ force: true })
// db.sync()
module.exports = db