capistrano/blob/v3.4.0部署


15:13 [[email protected]]$ 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{[email protected]}, my_property: :my_value
# role :web, %w{[email protected] [email protected]}, other_property: :other_value
# role :db,  %w{[email protected]}

把/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


你可能感兴趣的:(capistrano/blob/v3.4.0部署)