[Groonga-commit] ranguba/epub-searcher at 89017ee [master] Share settings with background processes on command-line app

Back to archive index

KITAITI Makoto null+****@clear*****
Mon Dec 22 07:29:40 JST 2014


KITAITI Makoto	2014-12-22 07:29:40 +0900 (Mon, 22 Dec 2014)

  New Revision: 89017ee510527194a35b2ec87b668a51161bc221
  https://github.com/ranguba/epub-searcher/commit/89017ee510527194a35b2ec87b668a51161bc221

  Message:
    Share settings with background processes on command-line app

  Modified files:
    bin/es-register

  Modified: bin/es-register (+3 -1)
===================================================================
--- bin/es-register    2014-12-22 07:22:47 +0900 (d36cada)
+++ bin/es-register    2014-12-22 07:29:40 +0900 (8996246)
@@ -8,7 +8,9 @@ if ARGV.empty?
   exit(false)
 end
 
-db = EPUBSearcher::RemoteDatabase.new
+require_relative '../config/boot'
+
+db = EPUBSearcher::RemoteDatabase.new(host: Epub::App.settings.droonga_host, port: Epub::App.settings.droonga_port)
 db.setup_database
 
 documents = ARGV.map do |epub_path|
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index