Learn More About Capistrano Tasks

I get a Capistrano recipe for working with Bundler and Rails (3.0.3), but with some basic features.

Following the Bundler docs for "Automatic Deployment with Capistrano", I am trying to get more information about the task, but for some reason "does not exist" ...

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

The Capistrano stone (2.5.19) is installed, and I'm trying to execute this command from the root of my project on the client (and not on the server).

actually cap -T doesn't show anything related to 'bundle' or 'install'

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

What am I doing wrong?

+7
ruby-on-rails bundle bundler capistrano
source share
1 answer

Have you included the recipe in the deploy.rb file?

 require "bundler/capistrano" 
+5
source share

All Articles