Merge pull request #4376 from pathawks/detach

Merge pull request 4376
This commit is contained in:
jekyllbot 2016-01-20 11:07:33 -08:00
commit 7b8c39722b
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ module Jekyll
build(site, options)
end
if options.fetch('watch', false)
if options.fetch('detach', false)
Jekyll.logger.info "Auto-regeneration:", "disabled when running server detached."
elsif options.fetch('watch', false)
watch(site, options)
else
Jekyll.logger.info "Auto-regeneration:", "disabled. Use --watch to enable."