Skip to content

Commit 0411008

Browse files
committed
Clear and warm up production cache in Docker setup
1 parent 41f6e33 commit 0411008

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ services:
3434
command: >
3535
sh -c "
3636
mkdir -p /var/www/html/var/cache/prod /var/www/html/var/log
37-
&& chown -R www-data:www-data /var/www/html/var/cache /var/www/html/var/log
37+
&& chown -R www-data:www-data /var/www/html/var/cache /var/www/html/var/log
3838
&& chmod -R ug+rwX /var/www/html/var/cache /var/www/html/var/log
39+
&& rm -rf /var/www/html/var/cache/prod/*
40+
&& php bin/console cache:clear --env=prod --no-warmup
41+
&& php bin/console cache:warmup --env=prod
3942
&& exec apache2-foreground
4043
"
4144

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@ckeditor/ckeditor5-vue": "^7.4.0",
27-
"@tatevikgr/rest-api-client": "^2.1.7",
27+
"@tatevikgr/rest-api-client": "^2.1.16",
2828
"apexcharts": "^5.10.4",
2929
"ckeditor5": "^48.0.0",
3030
"vue": "^3.5.16",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,10 +1805,10 @@
18051805
postcss "^8.5.6"
18061806
tailwindcss "4.2.2"
18071807

1808-
"@tatevikgr/rest-api-client@^2.1.7":
1809-
version "2.1.7"
1810-
resolved "https://registry.yarnpkg.com/@tatevikgr/rest-api-client/-/rest-api-client-2.1.7.tgz#7765e4c3d95dc3854415be392ec76a5f985ec7e3"
1811-
integrity sha512-xHyRzRCHfJ0YhGJi3JB+Hib2+dkd3+JaioYarHgv/WSGLmzxgimYwUBGDm4KDiSP0CkgGi/TvUVuLU3suZokgg==
1808+
"@tatevikgr/rest-api-client@^2.1.16":
1809+
version "2.1.16"
1810+
resolved "https://registry.yarnpkg.com/@tatevikgr/rest-api-client/-/rest-api-client-2.1.16.tgz#bcbc25a6177705e7c629b508dc333689d21f5c92"
1811+
integrity sha512-VOVp+Z/iXqozgRIDKzZfsevAkmzJ0OwxpnXZt9N9uwz+Xlg+nYBKyb6kJjrBtAJjKDmHQY3LWG4/B9gr2XgRbA==
18121812
dependencies:
18131813
axios "^1.6.0"
18141814

0 commit comments

Comments
 (0)