Forg/bin/docker-entrypoint

9 lines
191 B
Plaintext
Raw Permalink Normal View History

2024-04-13 10:22:40 +00:00
#!/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 "${@}"