[Groonga-commit] groonga/heroku-buildpack-rroonga at f6079a7 [master] Set GROONGA_DATABASE_PATH

Back to archive index

Kouhei Sutou null+****@clear*****
Sun May 25 18:14:01 JST 2014


Kouhei Sutou	2014-05-25 18:14:01 +0900 (Sun, 25 May 2014)

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

  Message:
    Set GROONGA_DATABASE_PATH

  Modified files:
    bin/compile

  Modified: bin/compile (+3 -2)
===================================================================
--- bin/compile    2014-05-25 18:11:17 +0900 (818766a)
+++ bin/compile    2014-05-25 18:14:01 +0900 (434256c)
@@ -28,6 +28,7 @@ def merge_environment_variables(variables)
     "PATH",
     "LD_LIBRARY_PATH",
     "PKG_CONFIG_PATH",
+    "GROONGA_DATABASE_PATH",
   ]
   target_paths.each do |target_path|
     all_paths = [
@@ -176,6 +177,8 @@ def setup_ruby_environment_variables(build_dir)
 end
 
 arguments = Arguments.new(*ARGV)
+groonga_database_path = File.join(arguments.build_dir, "groonga", "database")
+ENV["GROONGA_DATABASE_PATH"] = groonga_database_path
 
 builder = BuildpackBuilder.new("Groonga", "groonga/groonga", arguments)
 groonga_config = builder.build
@@ -187,8 +190,6 @@ setup_ruby_environment_variables(arguments.build_dir)
 
 puts("-----> Initializing database")
 Dir.chdir(arguments.build_dir) do
-  groonga_database_path = File.join(arguments.build_dir, "groonga", "database")
-  ENV["GROONGA_DATABASE_PATH"] = groonga_database_path
   sh(merge_environment_variables(arguments.environment_variables),
      "bundle", "exec", "ruby", File.join("groonga", "init.rb"))
 end
-------------- next part --------------
HTML����������������������������...
下載 



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