Move port and host configuration options to Jekyll::DEFAULTS so Commander doesn't override in serving awkwardly.

This commit is contained in:
Parker Moore 2013-04-07 23:55:04 +02:00
parent 1526aa3b1d
commit dbb3dd3a1a
2 changed files with 5 additions and 4 deletions

View File

@ -75,9 +75,7 @@ command :serve do |c|
c.option '-b', '--baseurl [URL]', 'Base URL'
c.action do |args, options|
options.default :port => '4000',
:host => '0.0.0.0',
:serving => true
options.default :serving => true
options = normalize_options(options.__hash__)
options = Jekyll.configuration(options)

View File

@ -64,7 +64,7 @@ module Jekyll
'keep_files' => ['.git','.svn'],
'future' => true, # remove and make true just default
'pygments' => true, # remove and make true just default
'pygments' => true, # remove and make true just default
'markdown' => 'maruku',
'permalink' => 'date',
@ -75,6 +75,9 @@ module Jekyll
'markdown_ext' => 'markdown,mkd,mkdn,md',
'textile_ext' => 'textile',
'port' => '4000',
'host' => '0.0.0.0',
'excerpt_separator' => "\n\n",
'maruku' => {