Sha256: 908a127ae184b1d5303de75087d0b4bf289812b297f9748e8f0b48d817d88068

Contents?: true

Size: 426 Bytes

Versions: 10

Compression:

Stored size: 426 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

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
railties-7.2.2.1 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.2 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.1.2 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.1.1 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.1 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.0 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.0.rc1 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.0.beta3 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.0.beta2 lib/rails/generators/rails/app/templates/docker-entrypoint.tt
railties-7.2.0.beta1 lib/rails/generators/rails/app/templates/docker-entrypoint.tt