Skip to content

Instantly share code, notes, and snippets.

@seenmyfate
Created October 25, 2010 17:11
Show Gist options
  • Save seenmyfate/645321 to your computer and use it in GitHub Desktop.
Save seenmyfate/645321 to your computer and use it in GitHub Desktop.
replicate templates/executable issue
#!/usr/bin/env ruby
#
# capistrano deploy with shared / current directories
# bundle install --gemfile ~/current/Gemfile --deployment --binstubs --path ~/shared/bundle
# ~/current/bin is ls -n -> ~/shared/bin
# replace bin/unicorn with this script, running ~/current/bin/unicorn gives
# bundler 1.02 ~/current/Gemfile
# bundler 1.03 ~/shared/Gemfile
#bundler 1.02
puts "bundler 1.02 #{File.expand_path("../../Gemfile", __FILE__)}"
#bundler 1.03
require 'pathname'
puts "bundler 1.03 #{File.expand_path("../../Gemfile", Pathname.new(__FILE__).realpath)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment