Sha256: 42084582d3d72edf76b8b6768ed161c1035ba77774f4981f48d8d8fbe64fa053

Contents?: true

Size: 432 Bytes

Versions: 9

Compression:

Stored size: 432 Bytes

Contents

#!/bin/bash -e

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

<% unless skip_active_record? -%>
# If running the rails server then create or migrate existing database
if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
  ./bin/rails db:prepare
fi

<% end -%>
exec "${@}"

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
railties-8.0.0 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-8.0.0.rc2 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-8.0.0.rc1 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-8.0.0.beta1 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
omg-railties-8.0.0.alpha9 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
omg-railties-8.0.0.alpha8 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
omg-railties-8.0.0.alpha7 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
omg-railties-8.0.0.alpha4 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
omg-railties-8.0.0.alpha3 lib/rails/generators/rails/app/templates/docker-entrypoint.tt