diff --git a/composer.json b/composer.json index 007f43f..d7b6719 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,9 @@ "phpunit/PHPUnit": "^5.7" }, "extra": { - "project-files": [], + "project-files": [ + "mysite/*" + ], "branch-alias": { "dev-master": "2.x-dev" } diff --git a/mysite/_config/environmentcheck.yml b/mysite/_config/environmentcheck.yml new file mode 100644 index 0000000..5e66ae6 --- /dev/null +++ b/mysite/_config/environmentcheck.yml @@ -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