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

Unicorn not reloading configuration #19

Closed
joeyAghion opened this issue Sep 15, 2014 · 1 comment
Closed

Unicorn not reloading configuration #19

joeyAghion opened this issue Sep 15, 2014 · 1 comment

Comments

@joeyAghion
Copy link
Owner

We've observed this in production a few times: deploying (or applying the configure recipe) writes an updated config/application.yml file and the unicorn processes are restarted, but their environment doesn't reflect the updated values.

I suspect that this logic for "quick" restarts is responsible:

https://github.com/aws/opsworks-cookbooks/blob/f4525b09ad77848f7d3a37f15c489b02c534985b/unicorn/templates/default/unicorn.service.erb#L73

@joeyAghion
Copy link
Owner Author

The culprit ended up being this line, where only keys that aren't already set in the ENV are loaded from the application.yml:

https://github.com/laserlemon/figaro/blob/v0.7.0/lib/figaro/railtie.rb#L8

Luckily, this loading logic has been revamped for figaro 1.0. Upgrading fixed the issue.

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

1 participant