macOS 10.13 安装和使用 Capistrano 自动部署
1,要用 sudo 管理员身份,不然提示没有权限,系统默认已经是 Ruby Gem 环境:
$ sudo gem install capistrano
2,初始化
$ capify . -------------------------------------------------------------------------------- Capistrano 3.x is incompatible with Capistrano 2.x. This command has become `cap install` in Capistrano 3.x For more information see http://www.capistranorb.com/ -------------------------------------------------------------------------------- $ sudo cap install mkdir -p config/deploy create config/deploy.rb create config/deploy/staging.rb create config/deploy/production.rb mkdir -p lib/capistrano/tasks Capified $ tree
参考:http://www.361way.com/capistrano-deploy/3563.html