cypress-rails icon indicating copy to clipboard operation
cypress-rails copied to clipboard

Ability to configure Puma

Open kyrylo opened this issue 1 year ago • 3 comments

In the app that I am running, we use cypress-rails and cypress-on-rails. I am trying to set up VCR support. Everything seems to be smooth except the single thread requirement. I need to start the Puma server in single-threaded mode, and it looks like I cannot do so.

This is because lib/cypress-rails/server/puma.rb hardcodes threads to 0:4: https://github.com/testdouble/cypress-rails/blob/9b3ed03514d00f0ae87ca484b08f8bbd158af102/lib/cypress-rails/server/puma.rb#L10

cypress-rails doesn't seem to care about config/puma.rb either.

Is there a way to override that value? Thanks!

kyrylo avatar Apr 17 '23 12:04 kyrylo