Skip to content

Pre-compile Twig templates after Pantheon deploy - #1048

Open
bboro wants to merge 2 commits into
mainfrom
twig-compile
Open

bboro wants to merge 2 commits into
mainfrom
twig-compile

Conversation

@bboro

@bboro bboro commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add drush twig:compile after the final cr in deployPantheonSync (between the second cr and deploy:hook), so the first request post-deploy doesn't pay the Twig compilation cost.

Test plan

  • QA deploy job logs show terminus remote:drush ... -- twig:compile running between the second cr and deploy:hook --no-interaction
  • Overall deploy succeeds end-to-end (no stopOnFail abort)

🤖 Generated with Claude Code

Add `drush twig:compile` after the final `cr` in deployPantheonSync so
the first request post-deploy doesn't pay the template compilation cost.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

@amitaibu amitaibu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

Comment thread robo-components/DeploymentTrait.php
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