(repoRoot: string, force: boolean)
| 648 | process.exit(1); |
| 649 | } |
| 650 | } |
| 651 | |
| 652 | if (serviceNames.includes('stripe')) { |
| 653 | try { |
| 654 | execSync('stripe --version', { stdio: 'ignore' }); |
| 655 | } catch { |
| 656 | console.warn('⚠ stripe CLI not found on PATH — skipping Stripe webhook forwarder.'); |
| 657 | console.warn(' Install it with: brew install stripe/stripe-cli/stripe'); |
| 658 | serviceNames = serviceNames.filter(name => name !== 'stripe'); |
| 659 | } |
| 660 | } |
| 661 | |
| 662 | // Grafana boots fine without the token; only dashboard queries fail. Treat |
| 663 | // this as advisory so devs poking around the repo don't get blocked. Check |
| 664 | // .env.local in addition to the shell so the warning doesn't fire when the |
| 665 | // token is set in the file (docker compose picks it up via the filtered |
| 666 | // compose secrets env file built from .env.local). |
| 667 | if (serviceNames.includes('grafana')) { |
| 668 | const tokenFromShell = process.env.CF_AE_TOKEN; |
| 669 | const tokenFromFile = envLocalExists ? readEnvValue(envLocalPath, 'CF_AE_TOKEN') : undefined; |
| 670 | if (!tokenFromShell && !tokenFromFile) { |
| 671 | console.warn('⚠ CF_AE_TOKEN not set — Grafana will boot but AE queries will fail.'); |
| 672 | console.warn(' Create a CF user API token with "All accounts → Account Analytics: Read",'); |
| 673 | console.warn(' then add CF_AE_TOKEN=<token> to .env.local. See dev/grafana/README.md.'); |
| 674 | } |
| 675 | } |
| 676 | |
| 677 | const hasInfra = serviceNames.some(name => getService(name).type === 'infra'); |
| 678 | if (hasInfra) { |
| 679 | for (const line of collidingInfraPorts(repoRoot, serviceNames)) { |
| 680 | console.warn(`⚠ ${line}`); |
| 681 | } |
| 682 | console.log(`${BOLD}Starting infrastructure…${RESET}`); |
no test coverage detected