Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
NEW Add environmentcheck configuration as a project-file
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jan 23, 2018
1 parent a666b4b commit 7e3d0f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"phpunit/PHPUnit": "^5.7"
},
"extra": {
"project-files": [],
"project-files": [
"mysite/*"
],
"branch-alias": {
"dev-master": "2.x-dev"
}
Expand Down
15 changes: 15 additions & 0 deletions mysite/_config/environmentcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
Name: cwpcoreenvironmentchecks
---
SilverStripe\EnvironmentCheck\EnvironmentCheckSuite:
registered_checks:
db:
definition: 'SilverStripe\EnvironmentCheck\Checks\DatabaseCheck()'
title: 'Is the database accessible?'
solr:
definition: 'SilverStripe\EnvironmentCheck\Checks\SolrIndexCheck()'
title: 'Are all Solr indexes available?'
registered_suites:
health:
- db
- solr

0 comments on commit 7e3d0f7

Please sign in to comment.