Skip to content

Commit

Permalink
feat: add default db configs for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cyber-eternal committed Feb 4, 2023
1 parent 66710f7 commit a2087d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
10 changes: 5 additions & 5 deletions config/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { join } from 'path';

export default {
name: process.env.TYPEORM_DATABASE,
type: 'mysql',
host: process.env.TYPEORM_HOST,
username: process.env.TYPEORM_USERNAME,
password: process.env.TYPEORM_PASSWORD,
database: process.env.TYPEORM_DATABASE,
type: process.env.TYPEORM_TYPE || 'mariadb',
host: process.env.TYPEORM_HOST || 'localhost',
username: process.env.TYPEORM_USERNAME || 'guest',
password: process.env.TYPEORM_PASSWORD || 'guest',
database: process.env.TYPEORM_DATABASE || 'core',
port: parseInt(process.env.TYPEORM_PORT) || 3306,
logging: process.env.TYPEORM_LOGGING === 'true',
entities: [join(__dirname, '..', '**', '*.entity.{ts,js}')],
Expand Down
22 changes: 0 additions & 22 deletions ormconfig.json

This file was deleted.

0 comments on commit a2087d9

Please sign in to comment.