mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 01:16:03 +01:00
Add Capistrano tasks for Rollbar
This commit is contained in:
parent
9724c1cc0e
commit
5c49ba79bd
2 changed files with 6 additions and 0 deletions
1
Capfile
1
Capfile
|
@ -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 }
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue