Disable auto-regeneration when running server detached

This commit is contained in:
Pat Hawks 2016-01-19 23:12:59 -08:00
parent ecc5121918
commit 090cf5a50b
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
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."