Navigation Menu

Skip to content

Commit

Permalink
Export GROONGA_BASE_PATH environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 14, 2014
1 parent 0a0844a commit e5d2fcd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -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.
4 changes: 3 additions & 1 deletion bin/release
Expand Up @@ -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")
Expand All @@ -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,
}

Expand Down

0 comments on commit e5d2fcd

Please sign in to comment.