rails-refresher/bin/docker-entrypoint
Tyrel Souza 8a91d51c39
finish
2024-07-04 21:00:08 -04: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 "${@}"