switch logger to db
This commit is contained in:
parent
fe5cbabd46
commit
7b08d6e03f
@ -13,7 +13,7 @@ const dotEnvExist = !fs.existsSync(dotEnvPath);
|
|||||||
fs.writeFileSync(dotEnvPath, `DATABASE_URL="mysql://${config.global.mysql.user}:${config.global.mysql.password}@${config.global.mysql.host}:${config.global.mysql.port}/${config.global.mysql.database}"`);
|
fs.writeFileSync(dotEnvPath, `DATABASE_URL="mysql://${config.global.mysql.user}:${config.global.mysql.password}@${config.global.mysql.host}:${config.global.mysql.port}/${config.global.mysql.database}"`);
|
||||||
log.core.info('Generated .env file for Prisma.');
|
log.core.info('Generated .env file for Prisma.');
|
||||||
if (dotEnvExist) {
|
if (dotEnvExist) {
|
||||||
log.core.error('Please run "npx prisma db push" to synchronize the database.');
|
log.db.error('Please run "npx prisma db push" to synchronize the database.');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user