A BuildTask for SilverStripe which allows for easy checking that the current server environment still meets the requirements defined by the standard SilverStripe installation process.
When you install SilverStripe by using the installation wizard, SilverStripe will check that the server environment meets all requirements. For example, certain PHP extensions are ensured to be available and directory writing permissions are checked. This is nice and handy. However, if you move your website/application to a new server or do some other changes to your server environment, SilverStripe by default does not provide any way to recheck the server environment's compatibility. This module simply adds a new BuildTask to your
/dev/tasks list that you can use to recheck the requirements anytime. It runs the same tests the SilverStripe installer runs.
This module requires SilverStripe 4.x framework. For compatibility with SS3, use the 1.x release line.
composer require "taitava/silverstripe-serverrequirementschecker:*" php vendor/silverstripe/framework/cli-script.php dev/build flush=all
For this to work you need to be logged in as an administrator user. Visit the following url: http://website url/dev/tasks/Taitava-ServerRequirementsChecker-ServerRequirementsCheckerTask
php vendor/silverstripe/framework/cli-script.php /dev/tasks/Taitava-ServerRequirementsChecker-ServerRequirementsCheckerTask
- Create a unit test class which iterates all server environment checks and asserts that they have passed. This would make it easy to integrate environment checks to other testing.
Have your own ideas? Please let me know in the issues! :) Pull requests are also welcome.
Jarkko Linnanvirta email@example.com