Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 9 additions & 74 deletions .blackfire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ This will automatically create a new project and initialize the repository for y
<br/>



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:
Expand Down