Add Capistrano tasks for Rollbar

This commit is contained in:
Georg Gadinger 2017-03-29 23:01:06 +02:00
parent 9724c1cc0e
commit 5c49ba79bd
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,7 @@ require "rvm1/capistrano3"
require "capistrano/bundler"
require "capistrano/rails/assets"
require "capistrano/rails/migrations"
require "rollbar/capistrano3"
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }

View File

@ -35,5 +35,10 @@ append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uplo
# Ruby version / RVM
set :rvm1_ruby_version, '2.3.3@retrospring'
# Rollbar
set :rollbar_token, '35f65946f562414da66d0d48073f5290' # TODO: before publishing this repo (again) remove this token
set :rollbar_env, Proc.new { fetch :stage }
set :rollbar_role, Proc.new { :app }
# Restart the app server after successful deploy
after 'deploy:cleanup', 'deploy:restart'