Files
fizzy/bin/docker-entrypoint
T
Kevin McConnell 564a0f48ae New Rails app
2024-06-21 13:19:56 +01:00

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