Capistranoで遊んでみた。 多くの方が絶賛しているruby製のアプリケーションなどを管理する為のツールですが、私はrubyの知識はないものの簡単な操作ができるまでCentOS上で遊んでみました。 今回の例では、apache2がインストールされた2台のサーバを1台の管理サーバから起動/停止をする簡単な例を説明します。 ○以下説明の為のサーバ説明 contorol1 : 管理サーバ web1 : apache2がインストールされたサーバ1 web2 : apache2がインストールされたサーバ2 ○専用の管理アカウントを作成 ※例) user : cap / password : capcap ※アプリケーションの実行権限にもよりますが、必要に応じsudo権限を付与させる。 ○まずはインストール(管理側の contorol1 サーバのみ) # wget http:/
開発用マシンにSwitchTowerをインストール gem install switchtower --include-dependencies ↑ 開発用ワーク上でSwitchTowerを組み込む switchtower --apply-to "アプリのディレクトリ" "アプリ名" ex) switchtower --apply-to /home/guest/src/todo todo config/deploy.rbとlib/tasks/switchtower.rakeが生成される。 ↑ サーバ指定 SwitchTowerに関する設定は、config/deploy.rbで行います。 先のコマンドで作成されているが、それをそっくり入れ替えちゃいます。 set :application, "todo" ← アプリ名 set :repository, "svn+ssh://svn.examp
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く