2010-11-22 29 views
7

Bundler ve Rails (3.0.3) uygulamasıyla çalışmak için bazı temel işlevlerle ilgili sorun yaşıyorum bir Capistrano tarifi alıyorum.Capistrano görevleri hakkında daha fazla bilgi alma

"Capistrano'nun ile otomatik dağıtım" için Bundler docs takiben (ben bir görev üzerinde daha fazla bilgi almak için çalışıyorum ama nedense

$ cap -e bundle:install 
The task `bundle:install' does not exist. 

Capistrano ... "yok" 2.5.19) gem yüklenir ve bu komutu istemcideki (sunucu değil) projemin kökünden çalıştırmaya çalışıyorum.

aslında kap -T 'paket' ya da ben yanlış yapıyorum

$ 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. 

'install' ile ilgili bir şey göstermiyor?

cevap

5

Bu tarifi deploy.rb dosyanıza dahil ettiniz mi?

require "bundler/capistrano" 
+0

That's it! 'Cap -T' in 'deploy.rb'de olanlara bağlı olarak değişeceğini * farketmedim. Sanırım daha çok yüceltilmiş bir adam sayfası olarak düşündüm. Bunu biraz daha iyi anlamamıza yardımcı olabilecek dokümanlar var mı? – Meltemi

+0

Muhtemelen bunu şimdi kendiniz çözdünüz, ancak ... deploy.rb, cap komutunu çalıştıran konfigürasyon. Yapılandırmada yer almayan tarifler, kap komutunda kullanılamayacaktır ve bu yüzden, hangi tariflerin mevcut olduğunu sorarken görünmeyecektir. – dondo

İlgili konular