[Groonga-commit] groonga/heroku-buildpack-groonga at e5d2fcd [master] Export GROONGA_BASE_PATH environment variable

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jun 14 22:21:27 JST 2014


Kouhei Sutou	2014-06-14 22:21:27 +0900 (Sat, 14 Jun 2014)

  New Revision: e5d2fcd6382ec63a4e22f88519e0aa247bc9481a
  https://github.com/groonga/heroku-buildpack-groonga/commit/e5d2fcd6382ec63a4e22f88519e0aa247bc9481a

  Message:
    Export GROONGA_BASE_PATH environment variable

  Modified files:
    README.md
    bin/release

  Modified: README.md (+10 -0)
===================================================================
--- README.md    2014-05-29 21:10:11 +0900 (9a82dfa)
+++ README.md    2014-06-14 22:21:27 +0900 (fe60be7)
@@ -17,3 +17,13 @@ Create `groonga` directory on the root of your project and place `*.grn` files i
 Then push them to Heroku.
 
     git push heroku master
+
+## Environment variables
+
+You can use the following environment variables:
+
+  * `GROONGA_BASE_PATH`: The directory path to be placed Groogna
+    related files such as database. You can use the directory to put
+    Groonga related files.
+  * `GROONGA_DATABASE_PATH`: The Groonga database path for your
+    application. The path exists under `GROONGA_BASE_PATH` directory.

  Modified: bin/release (+3 -1)
===================================================================
--- bin/release    2014-05-29 21:10:11 +0900 (22af1e9)
+++ bin/release    2014-06-14 22:21:27 +0900 (9009812)
@@ -6,7 +6,8 @@ build_dir = ARGV.first
 
 app_dir = "/app"
 
-database_path = File.join(app_dir, "groonga", "database")
+base_dir = File.join(app_dir, "groonga")
+database_path = File.join(base_dir, "database")
 
 build_groonga_dir = File.join(build_dir, "vendor", "groonga")
 app_groonga_dir = File.join(app_dir, "vendor", "groonga")
@@ -32,6 +33,7 @@ release["config_vars"] = {
   "PATH"            => paths.join(File::PATH_SEPARATOR),
   "LD_LIBRARY_PATH" => ld_library_paths.compact.join(File::PATH_SEPARATOR),
   "PKG_CONFIG_PATH" => pkg_config_paths.compact.join(File::PATH_SEPARATOR),
+  "GROONGA_BASE_PATH"     => base_dir,
   "GROONGA_DATABASE_PATH" => database_path,
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



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