Capistrano 自动部署

Install

$ gem install capistrano
$ cap install #初始化
$ cap production deploy #部署到在线
$ cap production deploy:rollback #回滚

config/deploy.rb
:application 应用名
:repo_url 远程仓库地址
:deploy_to 服务器目录

其它工具:
Deployer
Magallanes
Rocketeer

1 thought on “Capistrano 自动部署”

Leave a Reply

Your email address will not be published. Required fields are marked *