rails8-memoapp/bin/docker-entrypoint
2025-02-20 22:46:52 +09:00

8 lines
191 B
Bash
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 "${@}"