mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-22 14:38:19 +02:00
Merge pull request #199 from R0m1k3/1.1
Restore database connection for production environment
This commit is contained in:
2 files changed
+2
-3
No files matched your search
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
# https://curl.se/docs/http-cookies.html
|
# https://curl.se/docs/http-cookies.html
|
||||||
# This file was generated by libcurl! Edit at your own risk.
|
# This file was generated by libcurl! Edit at your own risk.
|
||||||
|
|
||||||
#HttpOnly_localhost FALSE / FALSE 1755533276 connect.sid s%3AeSuU-8Im6I46mIPMKRDM-0aPCdhWTzSL.7GTr5iIPSvj6vp5hpsbHQAs979W057UO9Lr3uRDpJ3I
|
#HttpOnly_localhost FALSE / FALSE 1755533549 connect.sid s%3AGRBodJanN_-I3rKEedKB2fTigAi5MCxd.DwfSaA4EL79Luvbib4T399slEhtQV%2Fw%2FbjUwjRGRU3g
|
||||||
+1
-2
@@ -3401,8 +3401,7 @@ console.log('🔗 Database initialization:', {
|
|||||||
dbHost: process.env.DATABASE_URL?.split('@')[1]?.split('/')[0] || 'unknown'
|
dbHost: process.env.DATABASE_URL?.split('@')[1]?.split('/')[0] || 'unknown'
|
||||||
});
|
});
|
||||||
|
|
||||||
// TEMPORARY: Force MemStorage for cache testing
|
export const storage: IStorage = isProduction ? new DatabaseStorage() : new MemStorage();
|
||||||
export const storage: IStorage = new MemStorage();
|
|
||||||
if (isProduction) {
|
if (isProduction) {
|
||||||
console.log('✅ Using DatabaseStorage (production PostgreSQL)');
|
console.log('✅ Using DatabaseStorage (production PostgreSQL)');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user