Blog Post

Notifying Rollbar of Mina Deployments
Posted By nick, September 24, 2014

After switching to Mina (from Capistrano) for our Rails application deployments, there was one tiny thing missing.

We use Rollbar for error catching, and it’s nice to see when a version was deployed in the timeline of issues. To achieve this, you need to notify Rollbar of the deployment, something there was existing support for in Capistrano.

Luckily, it’s quite easy to write extensions for Mina, so that’s what we did. Now, to add deployment notification support to your Mina deploy script, just add the gem to your Gemfile:

gem 'mina-rollbar', require: false

And modify your deploy.rb to send the notification upon successful deployment:

require 'mina/rollbar'

# replace value w/your real access token
set :rollbar_access_token, '249a18d14b438822b7cec493f86d7182'

task deploy: :environment do
  deploy do

    to :launch do
      invoke :'rollbar:notify'

There are more configuration options available, see the project GitHub page for details. Happy deploying!


Say Hello!