Skip to content

Commit

Permalink
fixed merge of config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Damick authored and Jeffrey Damick committed Jun 12, 2008
1 parent 724d5df commit dfbea5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion bin/jetty_merb
Expand Up @@ -20,6 +20,9 @@
# --environment ENV, -e ENV::
# change rails environment (default: development)
#
# --config FILE:: (optional)
# config file to use instead of command line switches (allows for multiple servers)
#
# BASEDIR (optional): directory to be run (default: current).

require "java"
Expand Down Expand Up @@ -80,7 +83,7 @@ opts.each do |opt, arg|
config[:environment] = arg
when '--config'
arg = "#{File.join(Dir.pwd, 'jetty_merb.yml')}" if arg.nil? || arg == ""
config.merge(YAML.load_file(arg))
config.merge!(YAML.load_file(arg))
end
end

Expand Down
6 changes: 3 additions & 3 deletions bin/jetty_rails
Expand Up @@ -20,8 +20,8 @@
# --environment ENV, -e ENV::
# change rails environment (default: development)
#
# --config
# config file to use instead of command line switches
# --config FILE:: (optional)
# config file to use instead of command line switches (allows for multiple servers)
#
# BASEDIR (optional): directory to be run (default: current).

Expand Down Expand Up @@ -86,7 +86,7 @@ opts.each do |opt, arg|
config[:environment] = arg
when '--config'
arg = "#{File.join(Dir.pwd, 'config', 'jetty_rails.yml')}" if arg.nil? || arg == ""
config.merge(YAML.load_file(arg))
config.merge!(YAML.load_file(arg))
end
end

Expand Down

0 comments on commit dfbea5c

Please sign in to comment.