Rom*_*ain 2 deployment capistrano ruby-on-rails ruby-on-rails-4 capistrano3
我想知道为什么Capistrano 3 文件:restart中的默认配方有一个参数?deploy.rbwait: 5
每次重新启动之间是否有特殊原因要等待 5 秒?
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
execute :touch, release_path.join('tmp/restart.txt')
end
end
Run Code Online (Sandbox Code Playgroud)
这是在capistrano 3 的发行说明中定义的
on :all, in: :sequence, wait: 15 do
# This takes all servers, in sequence and waits 15 seconds between
# each server, this might be perfect if you are afraid about
# overloading a shared resource, or want to defer the asset compilation
# over your cluster owing to worries about load
end
Run Code Online (Sandbox Code Playgroud)
阅读更多
| 归档时间: |
|
| 查看次数: |
910 次 |
| 最近记录: |