#{茶男與藍牌}
Life has to be exciting.
  • Me
  • Online Tools.
Demystifying Irb’s Commands Bash Guide for Beginners – Quoting characters

Capistrano deploy a branch or current commit

By 茶男 On 05/09/2011 · Leave a Comment

deploy a branch

set :branch, $1 if `git branch` =~ /\* (\S+)\s/m

deploy current commit

set :branch, $1 if `git rev-parse HEAD` =~ /(\S+)/
Tagged with: Branch • Capistrano • Git • Rails
 
If you enjoyed this article, please consider sharing it!
Reddit Facebook Twitter Delicious

Comments are closed.

  • Categories

    • .NET
    • ActiveRecord
    • Apache
    • Application Server
    • Browser
    • Cantonese
    • CSS
    • Database
    • English
    • General
    • Git
    • IT
    • Java
    • Javascript
    • Linux
    • Mac
    • MySql
    • PHP
    • PostgreSQL
    • Practical Source Code
    • Reflection
    • Ruby
    • SQL
    • Test
    • UI
    • Web
  • Articles

    • October 2012
    • May 2012
    • April 2012
    • March 2012
    • February 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • August 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
  • Calendar

    September 2011
    M T W T F S S
    « Aug   Oct »
     1234
    567891011
    12131415161718
    19202122232425
    2627282930  
  • Meta

    • Log in
    • Entries (RSS)
"No public Twitter messages." — chentianwen

#{茶男與藍牌}

Pages

  • Me
  • Online Tools.

The Latest

  • Removing a passphrase from an SSL Key
    from http://www.mnxsolutions.com/apache/removing-a-passphrase-from-an-ssl-key.html The typical process for creating an SSL certificate is as follows: […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2011 ${茶男與藍牌}
PlatformPro by PageLines