Files
coolify-examples/rails-example/bin/docker-entrypoint
Andras Bacsai 853c347c28 rails
2024-05-23 12:09:16 +02: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 "${@}"