dynamic / silverstripe-maintenance-mode

Maintainance/Offline Mode Module for SilverStripe
BSD 2-Clause "Simplified" License
21 stars 18 forks source link

NEW feature: Adding task to enable/disable maintenance mode via CLI #14

Closed patricknelson closed 8 years ago

patricknelson commented 8 years ago

I setup a task many months ago and realized it was pretty simple and well isolated so I figured I'd set this up as a PR and let you give it a look. Since I use capistrano to deploy to production, I needed a command line method (via SSH) to take the website down and put it into maintenance mode. Check this out, syntax is simple:

# Via Sake:
sake dev/tasks/MaintenanceMode on

# Via the CLI script directly:
php framework/cli-script.php dev/tasks/MaintenanceMode on

See here for example documentation: https://github.com/patricknelson/silverstripe-maintenance-mode/tree/feature-cli-task

patricknelson commented 8 years ago

Ping @muskie9 in case you're interested.

dljoseph commented 8 years ago

That's awesome. Thanks for that.