Blame view

config/database.js 1.17 KB
huangyi authored
1 2 3
module.exports = {
    test: {
        username: 'root',
李奇 authored
4
        password: '',
huangyi authored
5 6 7 8
        database: 'yoho_activity_platform',
        port: '3306',
        host: '0.0.0.0',
        dialect: 'mysql',
李奇 authored
9
        timezone: '+08:00',
huangyi authored
10 11 12 13 14 15 16 17
        pool: {
            max: 5,
            min: 0,
            acquire: 30000,
            idle: 10000
        },
        seederStorage: 'sequelize'
    },
陈峰 authored
18 19 20 21 22 23 24
    test3: {
        username: 'yh_test',
        password: 'yh_test',
        database: 'yoho_activity_platform',
        port: '3306',
        host: '192.168.102.219',
        dialect: 'mysql',
李奇 authored
25
        timezone: '+08:00',
陈峰 authored
26 27 28 29 30 31 32 33
        pool: {
            max: 5,
            min: 0,
            acquire: 30000,
            idle: 10000
        },
        seederStorage: 'sequelize'
    },
huangyi authored
34 35 36 37
    production: {
        username: 'yh_vpc_bak',
        password: 'yoho@2Y$^YpNb7hp',
        database: 'yoho_activity_platform',
陈峰 authored
38 39
        port: '3306',
        host: '10.66.106.4',
huangyi authored
40
        dialect: 'mysql',
李奇 authored
41
        timezone: '+08:00',
huangyi authored
42 43 44 45 46 47 48 49 50
        pool: {
            max: 5,
            min: 0,
            acquire: 30000,
            idle: 10000
        },
        seederStorage: 'sequelize'
    }
}[process.env.NODE_ENV || 'test'];