lib/dyndoc-html-servers.rb in dyndoc-ruby-1.3.2 vs lib/dyndoc-html-servers.rb in dyndoc-ruby-1.3.4
- old
+ new
@@ -268,13 +268,14 @@
dyn_root: dyn_root,
html_root: pages_root,
user: nil #current_email
}
- puts "watching "+ dyn_root+ " and " + dyn_public_edit_root
+ puts "watching "+ dyn_public_edit_root + " and " + dyn_root
old_html_file=""
- ::FileWatcher.new([dyn_root,dyn_public_edit_root]).watch() do |filename, event|
- ##p [:filename,filename,event]
+ ::FileWatcher.new([dyn_public_edit_root,dyn_root]).watch() do |filename, event|
+ ##
+ p [:filename,filename,event]
if [:changed,:updated,:new].include? event and File.extname(filename) == ".dyn"
##p [:filename_event,event,filename]
if (lint_error=Dyndoc::Linter.check_file(filename)).empty?
## do not process preload, postload, lib and layout files
unless filename =~ /(?:_pre|_post|_lib|_layout)\.dyn$/