database.ts
378 Bytes
import { join } from 'path';
export default {
type: 'mysql',
host: '192.168.1.39',
// socketPath: '/tmp/mysql.sock',
port: 3306,
username: 'wechat_user',
password: 'b4WRTkl',
database: 'dj_smartcarlife',
// entities: [join(__dirname, '../', '**/**.entity{.ts,.js}')],
entities: [join(__dirname, '../', 'modules/entities/**{.ts,.js}')],
synchronize: true,
};