- 追加された行はこの色です。
- 削除された行はこの色です。
&tag(Capistrano);
*目次 [#j8aad278]
#contents
*参考情報 [#j24c1780]
-[[Rails]]
-[[Rails3]]
*インストール [#i4eb383d]
-gemでインストール
gem install capistrano capistrano_colors
*デプロイ用の設定ファイルの作成 [#v883c334]
-自分のRailsアプリのフォルダに移動しcapifyコマンドを実行する。
cd ~/myapp
capify .
*設定ファイルの編集 [#v03db165]
-deploy.rbを編集。
#pre{{
set :application, "set your application name here"
set :repository, "set your repository location here"
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based o\
n known version control directory names
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "your web-server here" # Your HTTP server, Apache/etc
role :app, "your app-server here" # This may be the same as your `Web` ser\
ver
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will ru\
n
role :db, "your slave db-server here"
}}
-:application アプリケーション名。
-:repository SCMのリポジトリ。