Created
October 25, 2010 17:11
-
-
Save seenmyfate/645321 to your computer and use it in GitHub Desktop.
replicate templates/executable issue
This file contains 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 | |
# | |
# 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