From 88940ad642f6de8e187e494ace585bdf26979dee Mon Sep 17 00:00:00 2001 From: chadcarlson Date: Mon, 11 Apr 2022 14:22:51 -0400 Subject: [PATCH] Update to latest upstream. --- .blackfire.yml | 83 ++++++-------------------------------------------- README.md | 14 +++++++++ 2 files changed, 23 insertions(+), 74 deletions(-) diff --git a/.blackfire.yml b/.blackfire.yml index 7dd1cd80..2d3acb47 100644 --- a/.blackfire.yml +++ b/.blackfire.yml @@ -7,113 +7,48 @@ tests: 'Some Composer dependencies have known security issues and should be upgraded': path: - '/.*' - methods: - - ANY - command: '.*' assertions: - - { label: null, expression: 'not has_vulnerable_dependencies()' } - exclude: { } - # 'You should enable twig cache in Drupal': - # path: - # - '/.*' - # methods: - # - ANY - # command: '.*' - # assertions: - # - { label: null, expression: 'metrics.drupal8.twig_cache.construct.count >= 1' } - # when: 'metrics.drupal8.installed.count > 0' - # exclude: { } + - { expression: 'not has_vulnerable_dependencies()' } '"assert.active" is a dev_only feature and should be disabled in production': path: - '/.*' - methods: - - ANY - command: '.*' assertions: - - { label: null, expression: 'runtime.configuration.assert_active === false' } - exclude: { } - # 'You should enable APCu for Drupal': - # path: - # - '/.*' - # methods: - # - ANY - # command: '.*' - # assertions: - # - { label: null, expression: 'metrics.drupal8.fast_cache.count > 0' } - # when: 'metrics.drupal8.installed.count > 0' - # exclude: { } + - { expression: 'runtime.configuration.assert_active === false' } '"display_errors" should be disabled': path: - '/.*' - methods: - - ANY - command: '.*' assertions: - - { label: null, expression: 'not is_configuration_enabled("display_errors")' } - exclude: { } + - { expression: 'not is_configuration_enabled("display_errors")' } '"display_startup_errors" should not be enabled': path: - '/.*' - methods: - - ANY - command: '.*' assertions: - - { label: null, expression: 'not is_configuration_enabled("display_startup_errors")' } - exclude: { } + - { expression: 'not is_configuration_enabled("display_startup_errors")' } '"max_execution_time" should be less than 30 seconds for Web requests': path: - '/.*' - methods: - - ANY assertions: - - { label: null, expression: 'runtime.configuration.max_execution_time <= 30' } - exclude: { } + - { expression: 'runtime.configuration.max_execution_time <= 30' } '"session.use_strict_mode" should be enabled': path: - '/.*' - methods: - - ANY - command: '.*' assertions: - - { label: null, expression: 'runtime.configuration.session_use_strict_mode === true' } - exclude: { } + - { expression: 'runtime.configuration.session_use_strict_mode === true' } '"zend.detect_unicode" should be disabled as BOMs are not portable': path: - '/.*' - methods: - - ANY - command: '.*' assertions: - - { label: null, expression: 'runtime.configuration.zend_detect_unicode === false' } - exclude: { } - # 'PHP Preloading should be configured': - # path: - # - '/.*' - # methods: - # - ANY - # command: '.*' - # assertions: - # - { label: null, expression: 'runtime.configuration.opcache_preload != ""' } - # when: 'is_extension_loaded("zend_opcache")' - # exclude: { } + - { expression: 'runtime.configuration.zend_detect_unicode === false' } 'The realpath cache ttl should be more than one hour in production': path: - '/.*' - methods: - - ANY - command: '.*' assertions: - - { label: null, expression: 'runtime.configuration.realpath_cache_ttl >= 3600' } - exclude: { } + - { expression: 'runtime.configuration.realpath_cache_ttl >= 3600' } 'The session garbage collector should be disabled in production': path: - '/.*' - methods: - - ANY - command: '.*' assertions: - - { label: null, expression: 'runtime.configuration.session_gc_probability === 0' } - exclude: { } + - { expression: 'runtime.configuration.session_gc_probability === 0' } scenarios: | #!blackfire-player diff --git a/README.md b/README.md index a3ca2039..a2e09ab2 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,20 @@ This will automatically create a new project and initialize the repository for y
+ +You can also quickly recreate this project locally with the following command: + +```bash +composer create-project platformsh/drupal-recommended-project -s dev +``` + + +> **Note:** +> +> Platform.sh templates prioritize upstream release versions over our own. Despite this, we update template dependencies on a scheduled basis independent of those upstreams. Because of this, template repos do not contain releases. This may change in the future, but until then the `-s dev` flag is necessary to use `composer create-project`. + + + #### Other deployment options For all of the other options below, clone this repository first: