Skip to content

Commit

Permalink
Merge pull request #20 from ant30/fix_listen_regexp
Browse files Browse the repository at this point in the history
Trying to fix the required whitespace problem, it cause a lot of problems
  • Loading branch information
samuelkadolph authored Jul 12, 2016
2 parents 2061028 + baec3ad commit 79e1eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unicorn_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def run(app, options = {})
end

if unicorn_options[:config_file]
if ::File.read(unicorn_options[:config_file]) =~ /^(\s+)listen\s/
if ::File.read(unicorn_options[:config_file]) =~ /^(\s*)listen\s/
unicorn_options.delete(:listeners)
end
end
Expand Down

0 comments on commit 79e1eb0

Please sign in to comment.