capistrano/blob/v3.4.0部署

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:defaults
cap 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