listener = Listen.to(File.expand_path('../app/apis', dir), only: /.rb$/) do |modified, added, removed|
modified.each do |path|
puts path
load path
end
end
listener.start
change some files in app/apis dir, it puts the change file path, but the grape return the old code.
how can i make it work with grape??
listener = Listen.to(File.expand_path('../app/apis', dir), only: /.rb$/) do |modified, added, removed| modified.each do |path| puts path load path end end
listener.start
change some files in app/apis dir, it puts the change file path, but the grape return the old code. how can i make it work with grape??