diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-03-10 19:43:31 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-03-10 19:43:31 +0900 |
commit | 9af6601a46ec6afeafc61597eb10bdc7f175370d (patch) | |
tree | 3df33e809f48cbc9e0f0bb7678d0c67a8879bb81 /activestorage/app/models/active_storage/identification.rb | |
parent | 38c7ddd4e9f3f22f67d9615dd04a2ae9525824fb (diff) | |
download | rails-9af6601a46ec6afeafc61597eb10bdc7f175370d.tar.gz rails-9af6601a46ec6afeafc61597eb10bdc7f175370d.tar.bz2 rails-9af6601a46ec6afeafc61597eb10bdc7f175370d.zip |
Do not show unnecessary message during server startup
Currently, `Exiting` is showed during server startup.
```
./bin/rails s
=> Booting Puma
=> Rails 6.0.0.alpha application starting in development
=> Run `rails server --help` for more startup options
Exiting
Puma starting in single mode...
* Version 3.11.2 (ruby 2.5.0-p0), codename: Love Song
```
This is because processing at server stop is passed as a block, and
`Rack::Serve#start` receives a block and executes it during startup processing.
https://github.com/rack/rack/blob/50db1ffdf8b98503fb7c6e6648622b5d7d78d58e/lib/rack/server.rb#L258
In order to avoid this, stop processing is passed as argument.
Diffstat (limited to 'activestorage/app/models/active_storage/identification.rb')
0 files changed, 0 insertions, 0 deletions