README.md in paratrooper-1.1.2 vs README.md in paratrooper-1.1.3
- old
+ new
@@ -80,11 +80,11 @@
This will create/update a `staging` git tag at `HEAD`
### Production example
```ruby
Paratrooper::Deploy.new("amazing-production-app",
- tag: 'production'
+ tag: 'production',
match_tag_to: 'staging'
)
```
This will create/update a `production` git tag at `staging` and deploys the `production` tag
@@ -117,12 +117,12 @@
deployment.deploy
end
desc 'Deploy app in production environment'
task :production do
- Paratrooper::Deploy.new("amazing-production-app",
- tag: 'production'
+ deployment = Paratrooper::Deploy.new("amazing-production-app",
+ tag: 'production',
match_tag_to: 'staging'
)
deployment.deploy
end
@@ -141,11 +141,11 @@
require 'paratrooper'
namespace :deploy do
desc 'Deploy app in production environment'
task :production do
- Paratrooper::Deploy.new("amazing-production-app",
- tag: 'production'
+ deployment = Paratrooper::Deploy.new("amazing-production-app",
+ tag: 'production',
match_tag_to: 'staging'
)
%x[curl https://heroku.newrelic.com/accounts/ACCOUNT_ID/applications/APPLICATION_ID/ping_targets/disable -X POST -H "X-Api-Key: API_KEY"]