To perform deployments, you can use predefined tasks or create custom rake tasks. Capistrano is a remote server automation and deployment tool written in ruby. Capistrano has been the most popular way to deploy ruby and rails applications for a long time. I am using rails 4 and capistrano gem capistrano, 3. Capistrano is a tool for deploying applications using deployment scripts. These guides are designed to make you immediately productive with rails, and to.
This document was created with prince, a great way of getting web content onto paper. How to deploy rubyonrails project to aws ec2 using capistrano. How to use capistrano to deploy a rails application to a. In its simplest form, capistrano allows you to copy code from your source control repository svn or git to your server via ssh, and perform pre and postdeploy functions like restarting a webserver, busting cache, renaming files, running database migrations and so on. If your language or framework has special deployment requirements, capistrano can easily be extended to support them. This video about deployment procedure of your ruby on rails project to amazon web services aws ec2 platform using capistrano gem. If you prefer to use another server other than puma, you should substitute the capistrano3puma and puma gems with those corresponding to your server of choice. Ruby on rails is one of the most popular and easy to use web application development frameworks. Deploy your rails app with capistrano runtime revolution. Deleting a remote directory using capistrano server fault.
Capistrano is written in ruby, but it can easily be used to deploy any language. Capistrano is a ruby program that gives you a set of advanced tools to deploy web applications to your servers. This video provides a quick demonstration of a basic recipe for deploying a rails 3 application. A red tape tutorial like this should be on the readme of the capistrano project. Capistrano extends the rake dsl with methods specific to running commands on servers for any language. This is a stepbystep tutorial to show whats involved. Capistrano s github profile contains a list of available gems once capistrano is installed, run the following command inside your. Official ruby on rails specific tasks for capistrano capistrano rails. For instance, capistrano rails will add the following tasks. If your server is using rvm, add gem capistrano rvm. Each require will automatically add new tasks to your deploy process.
1496 1645 708 1188 725 1228 1451 877 1048 1363 1113 416 1657 530 860 835 936 520 69 653 1264 389 113 388 1041 272 584 1075 990 1495 862 694 1110 1493 1062 1089 1635 331 771 390 214 1135 717 906 382