From cccb7fdf4db3e990444580a0ad61f359df78406d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20R?= Date: Fri, 4 Oct 2019 10:46:45 +0200 Subject: [PATCH] [Platform.sh] Move cache clear script to make sure it is kept in packages --- .gitignore | 2 +- .platform.app.yaml | 2 +- ...er_node-clear_cache.sh => platformsh_prestart_cacheclear.sh} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename bin/{platformsh/pre_start-per_node-clear_cache.sh => platformsh_prestart_cacheclear.sh} (100%) diff --git a/.gitignore b/.gitignore index 9c35ddc4d2..e0a17513bb 100644 --- a/.gitignore +++ b/.gitignore @@ -45,8 +45,8 @@ /bin/* !bin/.ci/ !bin/.travis/ -!bin/platformsh/ !bin/console +!bin/platformsh_prestart_cacheclear.sh !bin/vhost.sh .php~ diff --git a/.platform.app.yaml b/.platform.app.yaml index 269aeef366..672b246a4c 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -140,7 +140,7 @@ hooks: # Now that mounts are available, clear cache on mount. # Note: Skip on PE Cluster setup using e.g. "if [$PLATFORM_BRANCH" != 'production']; then" & get p.sh to enable this on internal per node "pre_start" hook - sh bin/platformsh/pre_start-per_node-clear_cache.sh + sh bin/platformsh_prestart_cacheclear.sh # If you also need to clear Redis cache on every deploy, you can either use this command or redis-cli # Normally this should only be needed if cached data structures changes (upgrades), or you change data via sql (e.g. restore backup) diff --git a/bin/platformsh/pre_start-per_node-clear_cache.sh b/bin/platformsh_prestart_cacheclear.sh similarity index 100% rename from bin/platformsh/pre_start-per_node-clear_cache.sh rename to bin/platformsh_prestart_cacheclear.sh