lib/jekyll/commands/serve.rb in jekyll-2.3.0 vs lib/jekyll/commands/serve.rb in jekyll-2.4.0
- old
+ new
@@ -18,10 +18,11 @@
c.option 'host', '-H', '--host [HOST]', 'Host to bind to'
c.option 'baseurl', '-b', '--baseurl [URL]', 'Base URL'
c.option 'skip_initial_build', '--skip-initial-build', 'Skips the initial site build which occurs before the server is started.'
c.action do |args, options|
- options["serving"] ||= true
+ options["serving"] = true
+ options["watch"] = true unless options.key?("watch")
Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options)
end
end
end