From 119bc7569aa704af28ae6d918a4c077542ecb7e2 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Wed, 11 Dec 2024 15:48:28 +0100 Subject: [PATCH 1/2] Enable no index on stage env always (#267) --- config/packages/framework.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index e40ab1e0..8b58dfd1 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -23,3 +23,7 @@ when@test: test: true session: storage_factory_id: session.storage.factory.mock_file + +when@stage: + framework: + disallow_search_engine_index: true From c240d666efda43229c3a33ed775650818c787346 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Thu, 9 Jan 2025 12:00:55 +0100 Subject: [PATCH 2/2] Fix falsy .gitignore file when cache:clear fails (#268) Avoid falsely .gitignore file when cache:clear fails --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bf476669..cd727185 100644 --- a/composer.json +++ b/composer.json @@ -112,11 +112,11 @@ "@auto-scripts" ], "post-root-package-install": [ + "@php -r \"file_put_contents('.gitignore', str_replace(['composer.lock' . PHP_EOL, 'symfony.lock' . PHP_EOL, 'package-lock.json' . PHP_EOL], ['', '', ''], file_get_contents('.gitignore')));\"", "@php -r \"file_put_contents('.env.local', 'APP_ENV=dev' . PHP_EOL);\"", "@php -r \"file_put_contents('.env', str_replace('APP_SECRET=\\'s\\$cretf0rt3st\\'', 'APP_SECRET=' . bin2hex(random_bytes(16)), file_get_contents('.env')));\"" ], "post-create-project-cmd": [ - "@php -r \"file_put_contents('.gitignore', str_replace(['composer.lock' . PHP_EOL, 'symfony.lock' . PHP_EOL, 'package-lock.json' . PHP_EOL], ['', '', ''], file_get_contents('.gitignore')));\"", "@php bin/adminconsole sulu:admin:info --ansi" ], "bootstrap-test-environment": [