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.
Configure custom deployment
- Create a new project, select your Git provider and choose the repository with your project
- Add a new pipeline and configure the details: name, trigger mode, and branch from which you want to deploy
- As Capistrano is Ruby-based, look up and click Ruby on the action list:
- Install Bundler to your
Gemfileand enter the deployment script to the server defined in your config file (e.g.
gem install bundlerbundle installbundle exec cap staging deploy
- 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.