Files
test_rails_kaungkaung/bin/docker-entrypoint
2026-01-26 13:07:01 +06:30

9 lines
203 B
Bash
Executable File

#!/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 "${@}"