LoginSignup
4
4

More than 5 years have passed since last update.

Railsでローカルのdevelopmentモードでもリクエストを並列に受け取って処理するように

Posted at

容量の大きいファイルアップロードを裏でしながら、他の操作も許容したい。
というような機能をつくるときに、Railsのdevelopmentモードのデフォルト設定だとでリクエストを一つしか扱えないらしいので以下を追記する

development.rb
config.allow_concurrency = true

あとは、controller等にsleepメソッド書いて眠らせれば擬似的に重い処理を検証できる

4
4
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
4
4