← back to Textilewallpaper
fix env wiring — anchor dotenv to __dirname so .env loads even when pm2 cwd is wrong
75a817a54517776fd9dda1de0542077d88f5551d · 2026-05-13 17:50:06 -0700 · Steve
Files touched
Diff
commit 75a817a54517776fd9dda1de0542077d88f5551d
Author: Steve <steve@designerwallcoverings.com>
Date: Wed May 13 17:50:06 2026 -0700
fix env wiring — anchor dotenv to __dirname so .env loads even when pm2 cwd is wrong
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 48c0001..d6b5578 100644
--- a/server.js
+++ b/server.js
@@ -2,7 +2,7 @@
* TEXTILE WALLPAPER — DW family vertical
* Curated slice from live designerwallcoverings.com Shopify catalog.
*/
-try { require('dotenv').config(); } catch (e) {}
+try { require('dotenv').config({ path: require('path').join(__dirname, '.env') }); } catch (e) {}
const express = require('express');
const path = require('path');
const fs = require('fs');
← 61d941e corner-nav: title-case the brand name even when .ns-name sou
·
back to Textilewallpaper
·
favicon: Mag-7-inspired SVG glyph 920ce55 →