Skip to content

Commit

Permalink
Development option should be true if no port specified in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Feb 19, 2012
1 parent 8beb595 commit 5018f40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/stasis/dev_mode.rb
Expand Up @@ -14,6 +14,7 @@ def initialize(dir, options={})

@dir = dir
@options = options
@options[:development] ||= true

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

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

if options[:development]
if options[:development].is_a?(::Integer)
mime_types = WEBrick::HTTPUtils::DefaultMimeTypes
mime_types.store 'js', 'application/javascript'

Expand Down

0 comments on commit 5018f40

Please sign in to comment.