capistrano/blob/v3.4.0部署

来源:互联网 发布:新乡学院网络管理系统 编辑:程序博客网 时间:2024/05/16 04:22


15:13 [webuser@a02.test.stat]$ bundle exec cap production deploy:check --trace** Invoke production (first_time)** Execute production** Invoke load:defaults (first_time)** Execute load:defaultscap aborted!ArgumentError: wrong number of arguments (given 4, expected 2..3)

https://github.com/capistrano/capistrano/blob/v3.4.0/lib/capistrano/templates/stage.rb.erb

# role :app, %w{deploy@example.com}, my_property: :my_value# role :web, %w{user1@primary.com user2@additional.com}, other_property: :other_value# role :db,  %w{deploy@example.com}

把/config/deploy/production.rb中的服务器列表改为数组的形式


-role :web, "10.103.xx.xx", "10.103.xx.xx", "10.103.xx.xx"                          # Your HTTP server, Apache/etc-role :app, "10.103.xx.xx", "10.103.xx.xx", "10.103.xx.xx"                         # This may be the same as your `Web` server+role :web, ["10.103.xx.xx", "10.103.xx.xx", "10.103.xx.xx"]                          # Your HTTP server, Apache/etc+role :app, ["10.103.xx.xx", "10.103.xx.xx", "10.103.xx.xx"]                         # This may be the same as your `Web` server


0 0
原创粉丝点击