7
我得到了Capistrano的配方,可以與Bundler和Rails(3.0.3)應用程序一起使用,但是遇到了一些基本的功能問題。獲取更多關於Capistrano任務的信息
繼Bundler docs爲「與Capistrano的自動部署」,我試圖讓一個任務的詳細信息,但由於某種原因,「不存在」 ...
$ cap -e bundle:install
The task `bundle:install' does not exist.
Capistrano酒店( 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.
什麼我做錯了什麼嗎?
就是這樣!根據`deploy.rb`中的內容,我沒有意識到'cap -T'將會*變化*。我想我更多地把它看作是一個榮耀的男人頁面。任何可能幫助我將這個概念化得更好一些的文檔? – Meltemi 2010-11-22 18:41:24