Skip to content

Instantly share code, notes, and snippets.

View peleteiro's full-sized avatar
🏠
Working from home

Jose Peleteiro peleteiro

🏠
Working from home
View GitHub Profile
# http://unicorn.bogomips.org/SIGNALS.html
rails_env = ENV['RAILS_ENV'] || 'production'
rails_root = ENV['RAILS_ROOT'] || "/data/github/current"
God.watch do |w|
w.name = "unicorn"
w.interval = 30.seconds # default
# unicorn needs to be run from the rails root
#!/usr/bin/env ruby
$:.unshift File.dirname(__FILE__)+"/../lib"
require 'mongomapper'
require 'irb'
IRB.setup(nil)
irb = IRB::Irb.new
IRB.conf[:MAIN_CONTEXT] = irb.context