Skip to content

Don't copy compose.override.yaml during deploy#11935

Merged
mekarpeles merged 1 commit intointernetarchive:masterfrom
cdrini:fix/no-prod-compose-override
Feb 25, 2026
Merged

Don't copy compose.override.yaml during deploy#11935
mekarpeles merged 1 commit intointernetarchive:masterfrom
cdrini:fix/no-prod-compose-override

Conversation

@cdrini
Copy link
Copy Markdown
Collaborator

@cdrini cdrini commented Feb 25, 2026

Addendum to #11902

Technical

Testing

Screenshot

Stakeholders

Copilot AI review requested due to automatic review settings February 25, 2026 22:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a safety measure to the deployment script to prevent compose.override.yaml from being deployed to production servers. This is an addendum to PR #11902, which added Solr auto-rebuild functionality triggered by the LOCAL_DEV=true environment variable.

Changes:

  • Explicitly removes compose.override.yaml after copying compose files to prevent local dev configurations from reaching production servers
Comments suppressed due to low confidence (1)

scripts/deployment/deploy.sh:392

  • The wildcard pattern compose*.yaml on line 389 also matches compose.infogami-local.yaml, which is another local development-only file. This file mounts local vendor/infogami directories and should not be deployed to production servers. Consider also removing it here with rm -f openlibrary_new/compose.infogami-local.yaml.
    rm -f openlibrary_new/compose.override.yaml

@mekarpeles mekarpeles self-assigned this Feb 25, 2026
@mekarpeles mekarpeles merged commit 3ece086 into internetarchive:master Feb 25, 2026
8 checks passed
@cdrini cdrini deleted the fix/no-prod-compose-override branch February 25, 2026 22:56
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.

3 participants