mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
DATABASE_PROVIDER default is posttgresql #1
This commit is contained in:
parent
185fb587e0
commit
58a8d92c37
@ -3,17 +3,17 @@ const { execSync } = require('child_process');
|
||||
dotenv.config();
|
||||
|
||||
const { DATABASE_PROVIDER } = process.env;
|
||||
const databaseProviderDefault = DATABASE_PROVIDER ?? "postgresql"
|
||||
|
||||
if (!DATABASE_PROVIDER) {
|
||||
console.error('DATABASE_PROVIDER is not set in the .env file');
|
||||
DATABASE_PROVIDER = "postgresql"
|
||||
console.error(`DATABASE_PROVIDER is not set in the .env file, using default: ${databaseProviderDefault}`);
|
||||
// process.exit(1);
|
||||
}
|
||||
|
||||
const command = process.argv
|
||||
.slice(2)
|
||||
.join(' ')
|
||||
.replace(/\DATABASE_PROVIDER/g, DATABASE_PROVIDER);
|
||||
.replace(/\DATABASE_PROVIDER/g, databaseProviderDefault);
|
||||
|
||||
try {
|
||||
execSync(command, { stdio: 'inherit' });
|
||||
|
Loading…
Reference in New Issue
Block a user