Copy Erlang binaries to expected erts directory

This commit is contained in:
Andreas Dueren
2025-06-20 12:21:35 -06:00
parent 0e2b274fff
commit 3f0a5450f4
3 changed files with 27 additions and 9 deletions

17
keila-wrapper.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# Keila wrapper script that sets up proper Erlang runtime
# Set up environment for Keila
export MIX_ENV=prod
export ERL_LIBS=/usr/local/lib/erlang/lib
# Use system Erlang instead of the embedded one
export PATH="/usr/local/bin:$PATH"
# Run Keila with system Erlang
exec /usr/local/bin/erl -boot_var ERTS_LIB_DIR /usr/local/lib/erlang \
-boot /app/data/keila/releases/0.14.11/start \
-config /app/data/keila/releases/0.14.11/sys.config \
-args_file /app/data/keila/releases/0.14.11/vm.args \
-pa /app/data/keila/lib/*/ebin \
"$@"