Skip to content

Instantly share code, notes, and snippets.

zewelor

Block or report user

Report or block zewelor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zewelor
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 http://book.git-scm.com/5_git_hooks.html
# source : https://gist.github.com/1141992
ENV['GIT_DIR'] = nil
@zewelor
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!.
HOW_DEEP_WE_R_FROM_RAILS_ROOT = "../.."
# 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.