This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :bundler do | |
task :install do | |
run("#{sudo} gem install bundler --source=http://gemcutter.org") | |
end | |
task :symlink_vendor do | |
shared_gems = File.join(shared_path, 'vendor/gems') | |
release_gems = "#{release_path}/vendor/gems/" | |
%w(cache gems specifications).each do |sub_dir| | |
shared_sub_dir = File.join(shared_gems, sub_dir) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# based on http://gist.github.com/29838 | |
# logging to syslog added | |
# added killing orphaned procs | |
# added culling applications to maintain some per application limits | |
# Find bloating passengers and kill them gracefully. Run from cron every so often. | |
# | |
require "rubygems" | |
require "logging" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# How to exit if any command in a bash subshell fails with piping all output | |
set -o pipefail | |
( | |
set -o errexit; | |
echo -n "T"; | |
# false; | |
echo -n "e"; | |
# false; | |
echo -n "s"; |