Skip to content

Commit

Permalink
add support for env var database for db
Browse files Browse the repository at this point in the history
  • Loading branch information
targoninc-alex committed Oct 3, 2024
1 parent 3c9ae78 commit ed350c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/database/mariaDbDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class MariaDbDatabase {
this.port = port || (process.env.MYSQL_PORT ? parseInt(process.env.MYSQL_PORT) : null) || 3306;
this.user = user || process.env.MYSQL_USER || 'root';
this.password = password || process.env.MYSQL_PASSWORD || '';
this.database = 'venel';
this.database = process.env.MYSQL_DATABASE || 'venel';
CLI.info(`Connecting to MariaDB at ${this.host}:${this.port} with user ${this.user} and database venel.`);
}

Expand Down

0 comments on commit ed350c8

Please sign in to comment.