Files
fab-store/bin/docker-entrypoint
2025-10-27 04:17:14 +00:00

9 lines
205 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
AUTO_ACCEPT=1 ./bin/rails db:prepare
fi
exec "${@}"