-
Notifications
You must be signed in to change notification settings - Fork 5
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
envkey does not update secrets in unicorn when reloaded with USR2 #5
Comments
Looking into this--we probably need to handle unicorn reloads in the same way as spring reloads. |
Yeah, or expose a hook that users can invoke in |
Hmm, actually you should already be able to do that by requiring
This interface can be cleaned up a bit and documented, but does that work for you in the meantime? |
I'll give it a try thanks! |
Doesn't seem to work, probably because the Railtie already ran? |
Ah yes, in your
That should prevent the Railtie from running. |
This doesn't work for me, the unicorn file gets loaded every time and resets |
What about doing something like this in
|
Yeah something along those lines should work--will get it pushed up soon! |
Cool, thanks! |
Should now be fixed in 1.2.6! |
Thanks! |
Basically the first time unicorn boots, envkey loads the env vars but does not keep track of which keys it set. Then on subsequent reloads with
USR2
it fails to update the values because they are now already set and envkey will not override them.The text was updated successfully, but these errors were encountered: