Deploy with Capistrano

If you are new to Buddy, check out our quickstart guides that will tell you how to build, test and deploy your type of application.

Buddy turns deployments into a breeze, allowing you to automatically run deployment scripts on every push to branch. You can also deploy manually on click, or recurrently on time intervals. In this example we will show you how to deploy to Capistrano with a script.

Buddy pipeline exampleBuddy pipeline example

Configure custom deployment

  1. Create a new project, select your Git provider and choose the repository with your project
  2. Add a new pipeline and configure the details: name, trigger mode, and branch from which you want to deploy
  3. As Capistrano is Ruby-based, look up and click Ruby on the action list:

Build actions in BuddyBuild actions in Buddy

  1. Install Bundler to your Gemfile and enter the deployment script to the server defined in your config file (e.g. staging):
gem install bundler
bundle install
bundle exec cap staging deploy$$$

Default build commands in BuddyDefault build commands in Buddy

  1. When ready, click Add this action to finish configuration and start deploying.
You can add other commands to the build container before the deployment, for example rake test that will test your application before the upload. To learn more about build configuration, have a look at this article.

Last modified on April 26, 2022


Not sure how to configure a pipeline for your process? Reach out on the live-chat or contact support

Get Started

Sign up for free and deploy your project in less than 10 minutes.