Capistrano on the--ruby Rapid deployment tool

Source: Internet
Author: User
Tags ssh account

1.Capistrano Introduction

What is it? ---a deployment tool. (The deployment is to install the application on the production server, or update the latest version, the Web server start restart and stop, the site into a maintenance state or restore it to normal)

In the Rails deployment, you can update the code directly from SVN or git, run db:migrate to update the database, and then do that, then start the server, you can deploy, even if you have only one machine, you will feel too much trouble, If you need more than one machine to run, you might think that every time the manual deployment is a nightmare, you can use shell scripts to simplify the deployment of the program. When developing applications with Rails, you can use the Capistrano plugin for easier deployment.  In a nutshell, Capistrano is a tool that executes the same command on multiple machines in parallel with SSH and uses it to install a whole batch of machines. It simplifies the deployment process by having an existing and user-customized task.

Deployment:

1. Check if the Capistrano Gem list Capistrano is installed and install the sudo gem install Capistrano if there is no display.

2. To check the Capistrano version cap--version with the cap command in case

3. Login to the server via SSH account ssh [email protected]-P 1080

4. refer To:http://www.oschina.net/translate/using-capistrano

Http://www.361way.com/capistrano-deploy/3563.html


Capistrano on the--ruby Rapid deployment tool

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.