RBOnRails-learning/bin/docker-entrypoint
2024-08-07 16:43:33 +02:00

9 lines
191 B
Bash

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