[Groonga-commit] droonga/droonga.org at 2ad6b43 [gh-pages] Add steps to define DROONGA_BASE_DIR

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Aug 29 19:07:58 JST 2014


YUKI Hiroshi	2014-08-29 19:07:58 +0900 (Fri, 29 Aug 2014)

  New Revision: 2ad6b438eb2799a8d2225b080c31e9a46b729ca1
  https://github.com/droonga/droonga.org/commit/2ad6b438eb2799a8d2225b080c31e9a46b729ca1

  Message:
    Add steps to define DROONGA_BASE_DIR

  Modified files:
    _po/ja/tutorial/1.0.6/basic/index.po
    _po/ja/tutorial/1.0.6/groonga/index.po
    ja/tutorial/1.0.6/basic/index.md
    ja/tutorial/1.0.6/groonga/index.md
    tutorial/1.0.6/basic/index.md
    tutorial/1.0.6/groonga/index.md

  Modified: _po/ja/tutorial/1.0.6/basic/index.po (+19 -8)
===================================================================
--- _po/ja/tutorial/1.0.6/basic/index.po    2014-08-29 18:48:56 +0900 (29c318c)
+++ _po/ja/tutorial/1.0.6/basic/index.po    2014-08-29 19:07:58 +0900 (e69843c)
@@ -249,11 +249,27 @@ msgid "Create a directory for a Droonga engine:"
 msgstr "まず Droonga Engine 用のディレクトリを作成します。"
 
 msgid ""
-"    # mkdir engine\n"
-"    # cd engine"
+"    # mkdir ~/droonga\n"
+"    # cd ~/droonga"
 msgstr ""
 
 msgid ""
+"Define and export a new environment varialbe `DROONGA_BASE_DIR`, the path to t"
+"he configuration directory."
+msgstr "作成したディレクトリへのパスを、環境変数 `DROONGA_BASE_DIR` として定義し、エクスポートしておきましょう。"
+
+msgid "    # export DROONGA_BASE_DIR=~/droonga"
+msgstr ""
+
+msgid ""
+"The environment variable is used by droonga-engine and various command line ut"
+"ilities.\n"
+"For convenience, you should define and export `DROONGA_BASE_DIR` globally."
+msgstr ""
+"この環境変数はdroonga-engineや他のコマンドラインユーティリティなどから参照されます。\n"
+"利便性のために、`DROONGA_BASE_DIR`はグローバルに定義・エクスポートしておく事をおすすめします。"
+
+msgid ""
 "Then put a configuration file `droonga-engine.yaml` like following, into the d"
 "irectory:"
 msgstr "以下の内容で設定ファイル `droonga-engine.yaml` をディレクトリ内に作成します。"
@@ -414,9 +430,7 @@ msgid ""
 "ke:"
 msgstr "以下のようにして droonga-engine を起動します。"
 
-msgid ""
-"    # export DROONGA_BASE_DIR=$PWD\n"
-"    # droonga-engine"
+msgid "    # droonga-engine"
 msgstr ""
 
 msgid "### Stop an instance of droonga-engine"
@@ -443,9 +457,6 @@ msgstr "これがdroonga-engineを終了する方法です。"
 msgid "Start droonga-engine again:"
 msgstr "再度droonga-engineを起動します。"
 
-msgid "    # droonga-engine"
-msgstr ""
-
 msgid "### Create a database"
 msgstr "### データベースを作成する"
 

  Modified: _po/ja/tutorial/1.0.6/groonga/index.po (+15 -1)
===================================================================
--- _po/ja/tutorial/1.0.6/groonga/index.po    2014-08-29 18:48:56 +0900 (0f11134)
+++ _po/ja/tutorial/1.0.6/groonga/index.po    2014-08-29 19:07:58 +0900 (8c9e0d8)
@@ -199,6 +199,21 @@ msgid ""
 msgstr ""
 
 msgid ""
+"    And, define an environment variable `DROONGA_BASE_DIR` for the path to the"
+" directory like:"
+msgstr "    また、作成したディレクトリへのパスを環境変数 `DROONGA_BASE_DIR` として定義します:"
+
+msgid "        # export DROONGA_BASE_DIR=~/droonga"
+msgstr ""
+
+msgid ""
+"    The environment variable is used by Droonga.\n"
+"    For convenience, you should define and export it globally."
+msgstr ""
+"    この環境変数はDroongaによって参照されます。\n"
+"    利便性のために、グローバルに定義・エクスポートしておく事をおすすめします。"
+
+msgid ""
 " 5. Create a `droonga-engine.yaml` in the directory, *on each computer*.\n"
 "    It includes information to work droonga-engine well.\n"
 "    Currently you only have to put correct host name or IP address of the comp"
@@ -297,7 +312,6 @@ msgid "To start them, run commands like following on each Droonga node:"
 msgstr "サービスを起動するには、各Droongaノードで以下のようにコマンドを実行します:"
 
 msgid ""
-"    # export DROONGA_BASE_DIR=$HOME/droonga\n"
 "    # droonga-engine\n"
 "    # droonga-http-server --cache-size=-1"
 msgstr ""

  Modified: ja/tutorial/1.0.6/basic/index.md (+9 -3)
===================================================================
--- ja/tutorial/1.0.6/basic/index.md    2014-08-29 18:48:56 +0900 (5b92a39)
+++ ja/tutorial/1.0.6/basic/index.md    2014-08-29 19:07:58 +0900 (85bec96)
@@ -117,8 +117,15 @@ Droonga Engine を構築するのに必要なパッケージがセットアッ
 
 まず Droonga Engine 用のディレクトリを作成します。
 
-    # mkdir engine
-    # cd engine
+    # mkdir ~/droonga
+    # cd ~/droonga
+
+作成したディレクトリへのパスを、環境変数 `DROONGA_BASE_DIR` として定義し、エクスポートしておきましょう。
+
+    # export DROONGA_BASE_DIR=~/droonga
+
+この環境変数はdroonga-engineや他のコマンドラインユーティリティなどから参照されます。
+利便性のために、`DROONGA_BASE_DIR`はグローバルに定義・エクスポートしておく事をおすすめします。
 
 以下の内容で設定ファイル `droonga-engine.yaml` をディレクトリ内に作成します。
 
@@ -245,7 +252,6 @@ catalog.json:
 
 以下のようにして droonga-engine を起動します。
 
-    # export DROONGA_BASE_DIR=$PWD
     # droonga-engine
 
 ### droonga-engine を終了する

  Modified: ja/tutorial/1.0.6/groonga/index.md (+7 -1)
===================================================================
--- ja/tutorial/1.0.6/groonga/index.md    2014-08-29 18:48:56 +0900 (b923511)
+++ ja/tutorial/1.0.6/groonga/index.md    2014-08-29 19:07:58 +0900 (48bde09)
@@ -95,6 +95,13 @@ Droongaクラスタは、*Droongaノード*と呼ばれる複数のコンピュ
         # mkdir ~/droonga
         # cd ~/droonga
     
+    また、作成したディレクトリへのパスを環境変数 `DROONGA_BASE_DIR` として定義します:
+    
+        # export DROONGA_BASE_DIR=~/droonga
+    
+    この環境変数はDroongaによって参照されます。
+    利便性のために、グローバルに定義・エクスポートしておく事をおすすめします。
+    
  5. *それぞれのコンピュータで*、ディレクトリ内に`droonga-engine.yaml`を作成します。
     このファイルはdroonga-engineを上手く動作させるために必要な情報を含みます。
     現在の所は最低限、`host`というキーでそのコンピュータ自身のホスト名またはIPアドレスだけ指定する筆行があります:
@@ -145,7 +152,6 @@ GroongaをHTTPサーバとして使う場合は、以下のように `-d` オプ
 
 サービスを起動するには、各Droongaノードで以下のようにコマンドを実行します:
 
-    # export DROONGA_BASE_DIR=$HOME/droonga
     # droonga-engine
     # droonga-http-server --cache-size=-1
 

  Modified: tutorial/1.0.6/basic/index.md (+9 -3)
===================================================================
--- tutorial/1.0.6/basic/index.md    2014-08-29 18:48:56 +0900 (bcb3cff)
+++ tutorial/1.0.6/basic/index.md    2014-08-29 19:07:58 +0900 (1dfbf32)
@@ -109,8 +109,15 @@ Required packages are prepared by the command above. Let's continue to the confi
 
 Create a directory for a Droonga engine:
 
-    # mkdir engine
-    # cd engine
+    # mkdir ~/droonga
+    # cd ~/droonga
+
+Define and export a new environment varialbe `DROONGA_BASE_DIR`, the path to the configuration directory.
+
+    # export DROONGA_BASE_DIR=~/droonga
+
+The environment variable is used by droonga-engine and various command line utilities.
+For convenience, you should define and export `DROONGA_BASE_DIR` globally.
 
 Then put a configuration file `droonga-engine.yaml` like following, into the directory:
 
@@ -237,7 +244,6 @@ For more details of the configuration file `catalog.json`, see [the reference ma
 
 Start a Droonga engine, you can start it with the command `droonga-engine`, like:
 
-    # export DROONGA_BASE_DIR=$PWD
     # droonga-engine
 
 ### Stop an instance of droonga-engine

  Modified: tutorial/1.0.6/groonga/index.md (+7 -1)
===================================================================
--- tutorial/1.0.6/groonga/index.md    2014-08-29 18:48:56 +0900 (d17986a)
+++ tutorial/1.0.6/groonga/index.md    2014-08-29 19:07:58 +0900 (c973aab)
@@ -86,6 +86,13 @@ Assume that you have two computers: `192.168.100.50` and `192.168.100.51`.
         # mkdir ~/droonga
         # cd ~/droonga
     
+    And, define an environment variable `DROONGA_BASE_DIR` for the path to the directory like:
+    
+        # export DROONGA_BASE_DIR=~/droonga
+    
+    The environment variable is used by Droonga.
+    For convenience, you should define and export it globally.
+    
  5. Create a `droonga-engine.yaml` in the directory, *on each computer*.
     It includes information to work droonga-engine well.
     Currently you only have to put correct host name or IP address of the computer itself, with the key `host`, like:
@@ -135,7 +142,6 @@ On the other hand, you have to run multiple servers for each Droonga node to use
 
 To start them, run commands like following on each Droonga node:
 
-    # export DROONGA_BASE_DIR=$HOME/droonga
     # droonga-engine
     # droonga-http-server --cache-size=-1
 
-------------- next part --------------
HTML����������������������������...
Download 



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