Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to configure Puma #155

Open
kyrylo opened this issue Apr 17, 2023 · 3 comments
Open

Ability to configure Puma #155

kyrylo opened this issue Apr 17, 2023 · 3 comments

Comments

@kyrylo
Copy link

kyrylo commented Apr 17, 2023

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:

default_options = {Host: host, Port: port, Threads: "0:4", workers: 0, daemon: false}

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

Is there a way to override that value? Thanks!

@searls
Copy link
Member

searls commented Apr 18, 2023

I am very confident I did not think very hard about this, if I did at all. If you want to make this configurable via an CYPRESS_RAILS_SERVER_THREADS env var, I'd support a PR

@galori
Copy link

galori commented Feb 9, 2024

Hi @kyrylo - were you able to get this working? I'm interesting in getting VCR working as well.

Also can you elaborate on why one might use both cypress-rails and cypress-on-rails?

@kyrylo
Copy link
Author

kyrylo commented Feb 9, 2024

@galori Hey Gall! 👋

I no longer work for the company that owned the code. From what I remember, I did not find a way to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants