settingslogic
settingslogic copied to clipboard
reload settings without server restart
Is it possible to reload settings without restart the entire server?
Settings.reload!
So incase this helps anyone on Rails. I put my settings.rb in app/models and made it look like this:
class Settings < Settingslogic
source "#{Rails.root}/config/application.yml"
namespace Rails.env
load!
end
Settings.reload!
Haven't tried it in prod yet, but works great for live reloading in dev mode.