Skip to content

Instantly share code, notes, and snippets.

View andrik's full-sized avatar

Andrik Albuquerque andrik

View GitHub Profile
{
"method": "GET",
"path": "/v1/users/528",
"format": "*/*",
"controller": "Api::V1::UsersController",
"action": "show",
"status": 200,
"duration": 2249.83,
"view": 14.45,
"db": 2103.34,
> yell/lib/yell/event.rb
def request_id
env['action_dispatch.request_id']
end
> yell-adapters-gelf/lib/yell/adapters/gelf.rb
write do |event|
message = format({
@andrik
andrik / gist:3609935
Created September 3, 2012 15:02
Capistrano recipe to Webfaction
require 'bundler/capistrano'
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
set :user, "<<your webfaction user>>"
set :domain, "#{user}@<<your domain>>"
set :application, "<<your application>>"
set :repository, "<< your ssh repository link >>"
set :deploy_to, "/home/#{user}/webapps/#{application}"