Upgrated to rails 7.2.0

This commit is contained in:
David Böhm
2024-08-10 13:12:05 +02:00
parent d018d30485
commit 769423c42b
25 changed files with 362 additions and 155 deletions

View File

@@ -1,5 +1,10 @@
#!/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