database.js 1.1 KB
module.exports = {
    test: {
        username: 'root',
        password: '123456',
        database: 'yoho_activity_platform',
        port: '3306',
        host: '0.0.0.0',
        dialect: 'mysql',
        pool: {
            max: 5,
            min: 0,
            acquire: 30000,
            idle: 10000
        },
        seederStorage: 'sequelize'
    },
    test3: {
        username: 'yh_test',
        password: 'yh_test',
        database: 'yoho_activity_platform',
        port: '3306',
        host: '192.168.102.219',
        dialect: 'mysql',
        pool: {
            max: 5,
            min: 0,
            acquire: 30000,
            idle: 10000
        },
        seederStorage: 'sequelize'
    },
    production: {
        username: 'yh_vpc_bak',
        password: 'yoho@2Y$^YpNb7hp',
        database: 'yoho_activity_platform',
        port: '3306',
        host: '10.66.106.4',
        dialect: 'mysql',
        pool: {
            max: 5,
            min: 0,
            acquire: 30000,
            idle: 10000
        },
        seederStorage: 'sequelize'
    }
}[process.env.NODE_ENV || 'test'];