今回のテーマは、デプロイメント先のサーバコンピュータ(ターゲットホスト)のセットアップ。 たまに誤解する人がいるけれど、ターゲットホストに Capistrano をインストールする必要はない。Capistrano は、あなたの使用しているパソコン、つまりローカルホストで動いて、Ruby の Net::SSH モジュールの機能を使って、ターゲットホストにログインして、様々なコマンドを自動的に実行するツールだ。 では、SSH で普通にターゲットホスト(alpha.oiax.jp)にログインして、作業を始めよう。 まず、Rails アプリケーションの置き場所 /var/rails ディレクトリを作成する。 $ sudo mkdir /var/rails $ sudo chown app:app /var/rails ターゲットホストからログアウトする。 $ exit deploy:setup タ