← back to Grant
ecosystem.config.js
20 lines
module.exports = {
apps: [{
name: 'grant-app',
script: 'node_modules/.bin/next',
// Bind loopback only — `tailscaled` holds 100.107.67.67:7450 (tailnet
// IP) and [fd7a:…]:7450, which blocks any 0.0.0.0:7450 wildcard bind
// (EADDRINUSE). External traffic reaches Grant via tailscale serve →
// 127.0.0.1:7450 (or any reverse proxy fronting it). 2026-05-20.
args: 'start -p 7450 -H 127.0.0.1',
cwd: '/root/Projects/Grant',
env: {
NODE_ENV: 'production',
PORT: '7450',
},
max_memory_restart: '512M',
instances: 1,
autorestart: true,
}],
};