chore: switch database provider from SQLite to PostgreSQL
This commit is contained in:
@@ -9,6 +9,12 @@ const { execSync } = require('child_process');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// Load .env file if it exists
|
||||
const envPath = path.resolve(__dirname, '..', '.env');
|
||||
if (fs.existsSync(envPath)) {
|
||||
require('dotenv').config({ path: envPath });
|
||||
}
|
||||
|
||||
function checkPostgresConnection() {
|
||||
try {
|
||||
const dbUrl = process.env.DATABASE_URL;
|
||||
|
||||
Reference in New Issue
Block a user