Skip to content
Browse files

fix issue 457: Custom destination in _config.yml causes jekyll server…

… to auto-regenerate continuously
  • Loading branch information...
1 parent fa8400a commit 43b8a7689e744dd47f3af11b6d24dc7efb1d9e2c @enure enure committed with Mar 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/jekyll
View
6 bin/jekyll
@@ -225,10 +225,10 @@ source = options['source']
destination = options['destination']
# Files to watch
-def globs(source)
+def globs(source, destination)
Dir.chdir(source) do
dirs = Dir['*'].select { |x| File.directory?(x) }
- dirs -= ['_site']
+ dirs -= [destination]
dirs = dirs.map { |x| "#{x}/**/*" }
dirs += ['*']
end
@@ -245,7 +245,7 @@ if options['auto']
dw = DirectoryWatcher.new(source)
dw.interval = 1
- dw.glob = globs(source)
+ dw.glob = globs(source, destination)
dw.add_observer do |*args|
t = Time.now.strftime("%Y-%m-%d %H:%M:%S")

0 comments on commit 43b8a76

Please sign in to comment.
Something went wrong with that request. Please try again.