LoginSignup
0
0

More than 1 year has passed since last update.

RailsのPuma(v4系)でCapistranoのデプロイでゼロダウンタイムを実現する設定

Last updated at Posted at 2023-06-07

株式会社TECH LUCKという会社で代表兼エンジニアをしている齊藤です。

Capistranoでデプロイする際にPumaのv4系でゼロダウンタイムを実現するためには、phased_restartでPumaを再起動させます。
deploy.rbに以下の記述を行うと実現ができます。

/deploy.rb
set :puma_workers, 2
set :puma_preload_app, false
set :prune_bundler, true
set :puma_phased_restart, true

参考記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0