kissingcomputer/bin/docker-entrypoint

9 lines
203 B
Text
Raw Permalink Normal View History

2026-01-10 16:17:07 +00:00
#!/bin/bash -e
# 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
exec "${@}"