Skip to content

Bootstrap Beam scheduler environment - #4

Merged
fmercurio merged 1 commit into
caprover/nucleo-staging-ghcr-shafrom
fix/beam-scheduler-env-bootstrap
Jul 21, 2026
Merged

Bootstrap Beam scheduler environment#4
fmercurio merged 1 commit into
caprover/nucleo-staging-ghcr-shafrom
fix/beam-scheduler-env-bootstrap

Conversation

@fmercurio

Copy link
Copy Markdown

Summary

  • bootstrap Beam's .env.example fallback before starting schedule:work
  • extend CapRover definition validation to prevent this regression

Root cause

The Beam web entrypoint copies .env.example to .env before PHP-FPM starts. The scheduler overrides the image CMD and skipped that initialization. Laravel therefore used its MySQL fallback database forge, while the staging database is beam.

A temporary internal diagnostic job proved:

  • Journal returned all three synthetic article IDs
  • persistence then failed with SQLSTATE[HY000] [1049] Unknown database 'forge'

Runtime CapRover env variables still override fallback values; secrets remain injected at runtime.

Validation

  • python3 caprover/scripts/validate-definitions.py
  • git diff --check

@fmercurio
fmercurio merged commit 6965053 into caprover/nucleo-staging-ghcr-sha Jul 21, 2026
1 check passed
@fmercurio
fmercurio deleted the fix/beam-scheduler-env-bootstrap branch July 21, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant