Navigation Menu

Skip to content

Commit

Permalink
sample cluster: add log_file configuration as comment
Browse files Browse the repository at this point in the history
It's for easy to test.

Conflicts:
	sample/cluster/Rakefile
  • Loading branch information
kou authored and piroor committed Jan 6, 2015
1 parent 447237b commit b86daf1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sample/cluster/Rakefile
Expand Up @@ -91,6 +91,19 @@ class DroongaEngine
"--hosts", hosts.join(","),
"--port", self.class.port.to_s)
end

def generate_config
config = {
"host" => host,
"port" => self.class.port,
# "log_file" => "droonga-engine.log",
"log_level" => "info",
"pid_file" => "droonga-engine.pid",
}
config_path.open("w") do |file|
file.puts(config.to_yaml)
end
end
end

namespace :droonga do
Expand Down

0 comments on commit b86daf1

Please sign in to comment.