-
Notifications
You must be signed in to change notification settings - Fork 53
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
Client fails to receive updates in Rails console if Spring is enabled #73
Comments
Update: To use LaunchDarkly with the Rails application preloader Spring, we recommend using an |
@justinucd If we are using both Spring and Puma with our Rails app, which method should we use (Puma after_boot or Spring after_fork)? |
@robwise you should be good in the |
Thanks @markedmondson ! @robwise let me know if this works for you - if not, we can look into it further |
So do I have to put some sort of conditional in there based on the environment? Because we don't run spring in production, just when running our test suites, so launchdarkly would never get initialized in those cases. So do I also start it via Puma as well? |
Semi-pseudo code:
|
If Spring is enabled, the LaunchDarkly client does not receive feature flag updates in the rails console. A workaround is to disable Spring:
DISABLE_SPRING=true rails console
The text was updated successfully, but these errors were encountered: