Kouhei Sutou
null+****@clear*****
Tue Feb 23 10:10:16 JST 2016
Kouhei Sutou 2016-02-23 10:10:16 +0900 (Tue, 23 Feb 2016) New Revision: 90266d62e15491888fe299d779bead75767091b6 https://github.com/groonga/heroku-buildpack-groonga/commit/90266d62e15491888fe299d779bead75767091b6 Message: Export GROONGA_DATABASE_PATH Modified files: bin/compile Modified: bin/compile (+2 -1) =================================================================== --- bin/compile 2016-02-23 09:32:08 +0900 (a4056d6) +++ bin/compile 2016-02-23 10:10:16 +0900 (53ad240) @@ -154,7 +154,7 @@ Dir.chdir(build_dir) do env_file.print(build_path_environment_value(pkg_config_paths)) end - app_dir = ENV["HOME"] + app_dir = "$HOME" profile_dir="#{build_dir}/.profile.d" FileUtils.mkdir_p(profile_dir) File.open("#{profile_dir}/groonga.sh", "w") do |env_file| @@ -164,6 +164,7 @@ Dir.chdir(build_dir) do ].join(File::PATH_SEPARATOR) env_file.puts(<<-GROONGA_SH) export LD_LIBRARY_PATH="#{app_ld_library_path}:$LD_LIBRARY_PATH" +export GROONGA_DATABASE_PATH="#{app_dir}/#{database_path}" GROONGA_SH end -------------- next part -------------- HTML����������������������������...Download