This won't work for several reasons:
- There is no Guard plugin
guard-settings
, so you cannot useguard 'settings'
. - The watch block returns a transformed path that the plugin needs to take into account, not a String with Ruby code.
- Another problem with this approach is, that your project needs to run in the same process, otherwise reloading the settings will not have an effect on your actual server.
I suggest to make use of Listen in your project (you don't mention if it's Rails, Sinatra, ...) with something like:
Listen.to('config') do |modified, added, removed|
Settings.reload!
end.start