標記の力を高められるかもしれないいくつかのTipsを。 なお、あまりRailsと関係ないデプロイでも使えるTips多めです。CapstranoはRailsとの連携以外でも強力なデプロイツール。もっともっと評価されてもいいですね。 Capistrano::CLI.ui.ask でデフォルト値を設定する
Up until lately I was happy using Capistrano for my deployments. But then I noticed the following: Capistrano was utilizing 70 % of a physical CPU core when deploying on the go. I'm on a dual core system so this impacts my Mac Book Pros overall performance, battery life and it kept me waiting for a long long time. My iPhone was at edge speed so I figured Capistrano spent most of the time waiting f
弊社では、デプロイの自動化にWebstranoをフル活用している。僕はいままでcapistrano自体はずっと使っていたけど、そっちは使ったことがなかったので、ちょっと触ってみたところ、いくつかの不足をのぞくととてもよくできていて、いいものだと思った。その不足のうちの一番大きなものが、開発が終了しているっぽい気味で、Rails 2.3.11で止まってしまっていること。これでは、将来に禍根を残すことになりかねない。というわけで、ちょっといじってみることにした。 で、とりあえずは現状のテストを通しつつ少しづつバージョンを上げていけばいいんだろうなーと思ってやってみたのだけど、だいぶ道が険しく長い感じで気が遠くなってきた折り、Rails 3に対応したforked versionを見つけたので、そっちをいじってみることに。しかし、そっちはそっちで、それからさらに3.2.5までもかなり遠かったのだけ
One thing we often run into without deploys is “what server is that executing on?” After updating code, we actually a fairly elaborate process to remove servers from load balancing, restart, wait for load to drop off, then add it back in to load balancing. We also just use the AWS hostnames rather than our own since our server list pretty much changes weekly. Wouldn’t it be nice to have the ouptut
When I stumbled across Richard Huang’s DRY bundler in capistrano, I got excited thinking I’d learn even more about bundler’s internals and maybe even a few more tricks with using bundler and capistrano together. Unfortunately, all I really got was to use this in my deploy.rb: require 'bundler/capistrano' Now that will probably be enough for most people. But if you’re already using bundler 1.0 with
デプロイ先のRubyをRVMで入れている場合、そのRubyをCapistranoが見つけてくれないのでうまくデプロイが進まない現象が起こる。 それをうまく動かすためにひと工夫。 rvm capistrano plugin Capistranoを実行するマシンとデプロイ先のマシンの両方にRVMの1.0.1以上が入っている場合は、RVMのプラグインで解決できる。これはデフォルトで入っているので特にインストールしたりする必要はない。 deploy.rbの先頭に以下のコードを追加。 set :rvm_type, :user $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) require "rvm/capistrano" set :rvm_ruby_string, '1.9.2' rvm_typeはRVMをrootでインストールしている場
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く