Add deployment docs and fix dotenv loading
- Add deploy/server-info.md with full server access, DB, SSL, nginx info - Add dotenv dependency for .env file loading on server - Server running at https://marketplace.173.212.212.157.sslip.io Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
"stripe": "^17.5.0",
|
||||
"helmet": "^8.0.0",
|
||||
"express-rate-limit": "^7.5.0",
|
||||
"cookie-parser": "^1.4.7"
|
||||
"cookie-parser": "^1.4.7",
|
||||
"dotenv": "^16.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^4.17.21",
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'dotenv/config';
|
||||
|
||||
export const env = {
|
||||
PORT: parseInt(process.env['PORT'] || '3000', 10),
|
||||
DATABASE_URL: process.env['DATABASE_URL'] || 'postgresql://marketplace:marketplace_dev@localhost:5432/marketplace',
|
||||
|
||||
Reference in New Issue
Block a user