Skip to content

Commit a9cb979

Browse files
author
Christopher Brown
committed
set merb root in the chef-server launch script
1 parent 65c63ea commit a9cb979

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

chef-server/bin/chef-server

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ require "rubygems"
2424
require "merb-core"
2525
require "chef"
2626

27+
Dir.chdir File.join(File.dirname(__FILE__),"..")
28+
__DIR__ = Dir.getwd
29+
2730
if ARGV[0] && ARGV[0] =~ /^[^-]/
2831
ARGV.push "-H"
2932
end
3033
unless %w[-a --adapter -i --irb-console -r --script-runner].any? { |o| ARGV.index(o) }
3134
ARGV.push *%w[-a mongrel]
3235
end
33-
ARGV.push *[ "-I", File.join(File.dirname(__FILE__), "..", "config", "init.rb") ]
36+
ARGV.push *[ "-I", File.join(__DIR__, "config", "init.rb") ]
37+
ARGV.push *[ "-m", __DIR__]
3438

3539
if index = ARGV.index("-C")
3640
config = ARGV[index+1]

0 commit comments

Comments
 (0)