diff --git a/Capfile b/Capfile index feee1648..350ceaf0 100644 --- a/Capfile +++ b/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 } diff --git a/config/deploy.rb b/config/deploy.rb index f239d5d6..74cd246a 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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'