(basePort, instance)
| 271 | |
| 272 | // Helper to get instance-specific ports |
| 273 | function getInstancePort(basePort, instance) { |
| 274 | return basePort + parseInt(instance) * 100; |
| 275 | } |
| 276 | |
| 277 | // Get env file (use instance-specific if it exists, otherwise fall back to root) |
| 278 | function resolveEnvFile(appName, instance) { |