crimata-website/bin/docker-entrypoint
Andrew Gundersen f4fe6b2074 Initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 15:32:45 -05:00

8 lines
191 B
Shell
Executable file

#!/bin/bash -e
# If running the rails server then create or migrate existing database
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
./bin/rails db:prepare
fi
exec "${@}"