Sha256: 4968045e9df5096dd228d15b864c780dc57269ff653d635cab74aed3ad89a00e

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

#!/bin/bash -e

# Enable jemalloc for reduced memory usage and latency.
if [ -z "${LD_PRELOAD+x}" ] && [ -f /usr/lib/*/libjemalloc.so.2 ]; then
  export LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2)"
fi

# If running the rails server then create or migrate existing database
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
  ./bin/rails db:prepare
fi

exec "${@}"

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
wibrfake-brk-0.0.2 bin/docker-entrypoint
my_api_client-1.2.0 rails_app/rails_7.2/bin/docker-entrypoint
webamm_to_rails-7.0.1 lib/webamm_to_rails/rails_boilerplate/templates/bin/docker-entrypoint.erb
webamm_to_rails-7.0.0 lib/webamm_to_rails/rails_boilerplate/templates/bin/docker-entrypoint.erb