mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Add directory configuration docs, fix typo [ci skip]
Context: puma/puma#878
This commit is contained in:
parent
2c0758b222
commit
a494240054
1 changed files with 10 additions and 1 deletions
11
README.md
11
README.md
|
@ -220,8 +220,17 @@ When you run pumactl phased-restart, Puma kills workers one-by-one, meaning that
|
|||
|
||||
But again beware, upgrading an application sometimes involves upgrading the database schema. With phased restart, there may be a moment during the deployment where processes belonging to the previous version and processes belonging to the new version both exist at the same time. Any database schema upgrades you perform must therefore be backwards-compatible with the old application version.
|
||||
|
||||
if you perform a lot of database migrations, you probably should not use phased restart and use a normal/hot restart instead (pumactl restart). That way, no code is shared while deploying (in that case, preload_app might help for quicker deployment, see below).
|
||||
If you perform a lot of database migrations, you probably should not use phased restart and use a normal/hot restart instead (pumactl restart). That way, no code is shared while deploying (in that case, preload_app might help for quicker deployment, see below).
|
||||
|
||||
### Release Directory
|
||||
|
||||
If you symlink releases into a common working directory (i.e., `/current` from Capistrano), Puma won't pick up your new changes when running phased restarts without additional configuration. You should set your working directory within Puma's config to specify the directory it should use. This is a change from earlier versions of Puma (< 2.15) that would infer the directory for you.
|
||||
|
||||
```ruby
|
||||
# config/puma.rb
|
||||
|
||||
directory '/var/www/current'
|
||||
```
|
||||
|
||||
### Cleanup Code
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue