(appName, instance)
| 276 | |
| 277 | // Get env file (use instance-specific if it exists, otherwise fall back to root) |
| 278 | function resolveEnvFile(appName, instance) { |
| 279 | const instancePath = getInstanceEnvFile(appName, instance); |
| 280 | const rootPath = __dirname + `/${appName}/.env`; |
| 281 | |
| 282 | if (fs.existsSync(instancePath)) { |
| 283 | return instancePath; |
| 284 | } |
| 285 | return rootPath; |
| 286 | } |
| 287 | |
| 288 | module.exports = { |
| 289 | apps: [ |
no test coverage detected