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