Skip to content

Instantly share code, notes, and snippets.

View causztic's full-sized avatar
👋

yaojie causztic

👋
View GitHub Profile
@causztic
causztic / gsoc-2018-actionable-errors.md
Last active April 2, 2019 15:39
Actionable Errors and new Error Page Design for Ruby on Rails

During GSOC 2018 I have proposed and worked on a feature for Ruby on Rails - Actionable Errors. rails/rails#34788

Summary

Currently, errors with a defined flow to fix them have to be done manually (e.g. when there are pending migrations or when credentials are not found.)

With the new ActionableException concern in ActiveSupport, maintainers for various Ruby on Rails libraries with their special error classes will be able to extend this module and provide the appropriate Actions to take, which the user can activate by clicking on a button.

Description

@causztic
causztic / clockwork.rb
Last active December 18, 2019 02:00 — forked from rogercampos/clockwork.rb
Capistrano running clockwork as daemon with upstart
after "deploy:stop", "clockwork:stop"
after "deploy:start", "clockwork:start"
after "deploy:restart", "clockwork:restart"
set :clockwork_roles, :blabla
set :cw_log_file, "#{current_path}/log/clockwork.log"
set :cw_pid_file, "#{current_path}/tmp/pids/clockwork.pid"
set :rails_env, ENV['rails_env'] || ''
namespace :clockwork do