We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 534b4ab + c10edc8 commit 9558f00Copy full SHA for 9558f00
railties/lib/rails/generators/rails/app/templates/docker-entrypoint.tt
@@ -1,8 +1,9 @@
1
#!/bin/bash -e
2
3
# Enable jemalloc for reduced memory usage and latency.
4
-if [ -z "${LD_PRELOAD+x}" ] && [ -f /usr/lib/*/libjemalloc.so.2 ]; then
5
- export LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2)"
+if [ -z "${LD_PRELOAD+x}" ]; then
+ LD_PRELOAD=$(find /usr/lib -name libjemalloc.so.2 -print -quit)
6
+ export LD_PRELOAD
7
fi
8
9
<% unless skip_active_record? -%>
0 commit comments