Creacion de proyecto

This commit is contained in:
2024-09-11 20:13:56 -03:00
commit 205e238428
62 changed files with 1337 additions and 0 deletions

13
bin/docker-entrypoint Normal file
View File

@ -0,0 +1,13 @@
#!/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 "${@}"