Skip to content

Instantly share code, notes, and snippets.

zewelor / pre-commit.rspec.rb
Created May 30, 2012 — forked from sebthemonster/pre-commit.rspec.rb
pre-commit git hook, runs rspec if branch is master
View pre-commit.rspec.rb
#!/usr/bin/env ruby
# pre-commit git hook
# will run rspec if and only if current branch is master
# script adapted from
# source :
ENV['GIT_DIR'] = nil
zewelor / production.rb
Created May 6, 2012
Unicorn init.d script with support for different rvm gemsets
View production.rb
# RAILS_ROOT/config/unicorn.rb
# Search for "# SET ME!" and replace these with your own settings!.
# Set environment to development unless something else is specified
RAILS_ROOT = File.expand_path(HOW_DEEP_WE_R_FROM_RAILS_ROOT, File.dirname(__FILE__))
SHARED_PATH = File.expand_path('../shared', RAILS_ROOT)
ENV['BUNDLE_GEMFILE'] = File.expand_path("#{HOW_DEEP_WE_R_FROM_RAILS_ROOT}/Gemfile", File.dirname(__FILE__))
You can’t perform that action at this time.