This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyJob < ActiveJob::Base | |
| queue_as :urgent | |
| rescue_from(NoResultsError) do | |
| retry_job wait: 5.minutes, queue: :default | |
| end | |
| def perform(*args) | |
| MyService.call(*args) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Capybara.register_driver :chrome do |app| | |
| opts = { | |
| browser: :chrome, | |
| switches: %w( --test-type --window-size=1280,1024 ) | |
| } | |
| Capybara::Selenium::Driver.new(app, opts) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # lib/capistrano/tasks/assets.rake | |
| Rake::Task['deploy:assets:precompile'].clear | |
| namespace :deploy do | |
| namespace :assets do | |
| desc 'Precompile assets locally and then rsync to remote servers' | |
| task :precompile do | |
| local_manifest_path = %x{ls public/assets/manifest*}.strip |