feat: update Docker setup and documentation for PostgreSQL integration
This commit is contained in:
1 parent
f56eac28f7
commit
14a7348632
7 files changed
+46
-130
No files matched your search
@@ -102,8 +102,7 @@ app.use('/', webRoutes);
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Server is running on port ${PORT}`);
|
||||
console.log(`Environment: ${process.env.NODE_ENV || 'development'}`);
|
||||
const source = process.env.DATABASE_URL ? 'DATABASE_URL' : 'PGHOST/PGDATABASE';
|
||||
console.log(`Database: PostgreSQL (${source})`);
|
||||
console.log('Database: PostgreSQL (DATABASE_URL)');
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Database initialization error:', error);
|
||||
|
||||
Reference in new issue
Block a user