7
BundlerとRails(3.0.3)のアプリケーションで動作するが、いくつかの基本的な機能に問題があるCapistranoのレシピが手に入りました。Capistranoのタスクに関する詳細情報を取得する
「カピストラーノによる自動展開」のBundler docsに続いて(、私は仕事上の詳細情報を取得しようとしているが、何らかの理由でそれが
$ cap -e bundle:install
The task `bundle:install' does not exist.
カピストラーノ...「が存在しません」 2.5.19)gemがインストールされていて、クライアント(サーバーではない)上のプロジェクトのルートからそのコマンドを実行しようとしています。
「バンドル」に関連したものを表示したり、「インストール」しません-T実際のキャップで$ cap -T
cap deploy # Deploys your project.
cap deploy:check # Test deployment dependencies.
cap deploy:cleanup # Clean up old releases.
cap deploy:cold # Deploys and starts a `cold' application.
cap deploy:migrate # Run the migrate rake task.
cap deploy:migrations # Deploy and run pending migrations.
cap deploy:pending # Displays the commits since your last deploy.
cap deploy:pending:diff # Displays the `diff' since your last deploy.
cap deploy:restart # Restarts your application.
cap deploy:rollback # Rolls back to a previous version and restarts.
cap deploy:rollback:code # Rolls back to the previously deployed version.
cap deploy:setup # Prepares one or more servers for deployment.
cap deploy:start # Start the application servers.
cap deploy:stop # Stop the application servers.
cap deploy:symlink # Updates the symlink to the most recently deployed ...
cap deploy:update # Copies your project and updates the symlink.
cap deploy:update_code # Copies your project to the remote servers.
cap deploy:upload # Copy files to the currently deployed version.
cap deploy:web:disable # Present a maintenance page to visitors.
cap deploy:web:enable # Makes the application web-accessible again.
cap invoke # Invoke a single command on the remote servers.
cap shell # Begin an interactive Capistrano session.
私が間違って何をしているのですか?
これだけです!私は 'cap -T 'が' deploy.rb'にあるものによって変わるだろうと気づいていませんでした。私はそれを栄光の人のページとしてもっと考えたと思います。これを少し概念化するのに役立つドキュメントはどれですか? – Meltemi
あなたはこれまでに自分でこれを考え出したかもしれませんが、deploy.rbはcapコマンドを動かす設定です。設定に含まれていないレシピは、capコマンドで使用できないため、使用可能なレシピを尋ねるときに表示されません。 – dondo