README.md in paratrooper-2.4.0 vs README.md in paratrooper-2.4.1
- old
+ new
@@ -1,10 +1,11 @@

[](http://badge.fury.io/rb/paratrooper)
[](https://travis-ci.org/mattpolito/paratrooper)
[](https://codeclimate.com/github/mattpolito/paratrooper)
+[](https://gitter.im/mattpolito/paratrooper)
Simplify your [Heroku][] deploy with quick and concise deployment rake tasks.
## Installation
@@ -129,16 +130,14 @@
You can use the object's methods any way you'd like, but we've provided a sensible default at `Paratrooper#deploy`.
This will perform the following tasks:
-* Activate maintenance mode
* Create or update a git tag (if provided)
* Push changes to Heroku
* Run database migrations if any have been added to db/migrate
* Restart the application
-* Deactivate maintenance mode
* Warm application instance
### Example Usage
```ruby
@@ -211,18 +210,19 @@
deployment.deploy
end
end
```
-Or maybe you just want to run a rake task on your application
+Or maybe you just want to run a rake task on your application. Since this task may take a moment to complete it's probably a good idea to throw up a maintenance page.
```ruby
# lib/tasks/deploy.rake
namespace :deploy do
desc 'Deploy app in production environment'
task :production do
deployment = Paratrooper::Deploy.new("amazing-production-app") do |deploy|
+ deploy.maintenance = true
deploy.add_callback(:after_teardown) do |output|
output.display("Running some task that needs to run")
deploy.add_remote_task("rake some:task:to:run")
end
end