[Groonga-commit] groonga/heroku-buildpack-groonga at 0ebc6b9 [master] Create a directory for database

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 21 11:59:47 JST 2016


Kouhei Sutou	2016-02-21 11:59:47 +0900 (Sun, 21 Feb 2016)

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

  Message:
    Create a directory for database

  Modified files:
    bin/compile

  Modified: bin/compile (+2 -1)
===================================================================
--- bin/compile    2014-09-26 21:01:07 +0900 (6abadd2)
+++ bin/compile    2016-02-21 11:59:47 +0900 (0ded2c4)
@@ -10,7 +10,7 @@ include FileUtils
 
 build_dir, cache_dir, env_dir, = ARGV
 
-database_path = "groonga/database"
+database_path = "groonga/data/db"
 
 def detect_latest_version
   uri = "https://api.github.com/repos/groonga/groonga/releases"
@@ -121,6 +121,7 @@ Dir.chdir(build_dir) do
   ]
   ld_library_paths = [lib_dir] + base_ld_library_paths
   ENV["LD_LIBRARY_PATH"] = build_path_environment_value(ld_library_paths)
+  mkdir_p(File.dirname(database_path))
   sh("groonga", "-n", database_path, "quit")
 
   puts("-----> Loading data")
-------------- next part --------------
HTML����������������������������...
Download 



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