Capistrano-2.1を使って、Gitリポジトリからデプロイする為のレシピファイルの書き方のメモです。

config/deploy.rb

   1  set :application, "goodstuff"
   2  set :scm,         :git
   3  set :repository,  "git.foo.com:/path/to/#{application}.git"
   4  set :branch,      'master'
   5  set :deploy_via,  :copy
   6  set :deploy_to,   "/mnt/app/#{application}"
   7  set :user,        "app"
   8    (--snip--)

/path/to/goodstuff.gitがベアリポジトリだと仮定しています。 :branch:deploy_viaを指定しているところがポイントでしょうか。 後は

   1  % cap deploy

するだけ。

posted by Png genki on Sat 23 Aug 2008 at 01:58 with 1 comment

   1  def shotening(str)
   2    return str[0..0] + str[1..-2].gsub!(/\s/,"").size.to_s + str[-1..-1]
   3  end
   4  
   5  str = "something new and exciting"
   6  
   7  shotening(str)    #=> "s21g"

ってことなんですかね?

posted by Png y_tsuda on Fri 22 Aug 2008 at 13:59 with 2 comments
Contents
CapistranoでGitを使う方法のメモ
s21gの意味(?)
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
KingofSmack: Here also good reads for this mobile applicatio... '14-5
Spencer: You don't have to re-compile it, this version w... '14-4
staiano: Any chance we can get a recompile for 10.9? '14-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ