Skip to content

Commit

Permalink
warmup Symfony cache after start php container (#18)
Browse files Browse the repository at this point in the history
* warmup Symfony cache after start php container
  • Loading branch information
henzigo authored Jun 27, 2024
1 parent 59984d7 commit a2141a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
2. Run `composer update shopsys/deployment`
3. Check files in mentioned pull requests and if you have any of them extended in your project, apply changes manually

## Upgrade from v3.0.3 to v3.0.4

- Warmup Symfony cache after start php container ([#18](https://github.com/shopsys/deployment/pull/18))

## Upgrade from v3.0.0 to v3.0.1

- fix incorrect order of redirect requests ([#15](https://github.com/shopsys/deployment/pull/15))
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/deployments/webserver-php-fpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ spec:
imagePullPolicy: Always
workingDir: /var/www/html
lifecycle:
postStart:
exec:
command: ["/var/www/html/phing", "-S", "warmup"]
preStop:
exec:
command:
Expand Down

0 comments on commit a2141a7

Please sign in to comment.