WEBrick server losing constant settings

58 views Asked by At

I have recently changed my app to read a model's constants in from YAML files stored in Amazon S3 (set up in application.rb in an after_initialize). This works without a problem, except WEBrick seems to be losing the constants. It works fine when started, but after some time I'll refresh a view and it will report that the constant isn't initialized. There are no errors, and restarting the WEBrick server resolves the problem.

I'd be grateful for any advice.

Rails 4.1.6 application starting in development ..

INFO WEBrick 1.3.1

INFO ruby 2.1.2 (2014-05-08) [x86_64-linux]

0

There are 0 answers