Files
joanna-website/bin/docker-entrypoint
T
bionickatana 2a4e1c5026
CI / scan_ruby (push) Failing after 1m0s
CI / scan_js (push) Failing after 6s
CI / lint (push) Failing after 12s
CI / test (push) Failing after 3s
CI / system-test (push) Failing after 5s
starting Rails ste
2026-07-27 17:11:19 -06:00

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