Skip to content

Commit 5018f40

Browse files
author
winton
committed
Development option should be true if no port specified in dev mode
1 parent 8beb595 commit 5018f40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/stasis/dev_mode.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def initialize(dir, options={})
1414

1515
@dir = dir
1616
@options = options
17+
@options[:development] ||= true
1718

1819
@stasis = Stasis.new(*[ @dir, @options[:public], @options ].compact)
1920

@@ -34,7 +35,7 @@ def initialize(dir, options={})
3435
dw.add_observer { render }
3536
dw.start
3637

37-
if options[:development]
38+
if options[:development].is_a?(::Integer)
3839
mime_types = WEBrick::HTTPUtils::DefaultMimeTypes
3940
mime_types.store 'js', 'application/javascript'
4041

0 commit comments

Comments
 (0)