mirror of
https://github.com/mistergibson/radio.git
synced 2026-09-08 22:09:51 -07:00
fix
This commit is contained in:
parent
8a7b25c8be
commit
dfd182bbec
1 changed files with 7 additions and 0 deletions
7
run_jruby
Executable file
7
run_jruby
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
# Launcher: sets GEM_HOME/GEM_PATH BEFORE jruby starts, so RubyGems picks
|
||||
# them up natively at boot (in-process mutation is unreliable per JRuby #5269).
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
export GEM_HOME="${GEM_HOME:-$SCRIPT_DIR/.gems}"
|
||||
export GEM_PATH="${GEM_PATH:-$SCRIPT_DIR/.gems:/opt/jruby/lib/ruby/gems/shared}"
|
||||
exec /opt/jruby/bin/jruby "$@"
|
||||
Loading…
Reference in a new issue