From dfd182bbec99b6828e8b3a287a93757af1f8e6fa Mon Sep 17 00:00:00 2001 From: "G. Gibson" Date: Wed, 2 Sep 2026 06:17:30 -0700 Subject: [PATCH] fix --- run_jruby | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 run_jruby diff --git a/run_jruby b/run_jruby new file mode 100755 index 0000000..4b89d24 --- /dev/null +++ b/run_jruby @@ -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 "$@"