lexivo/bin/docker-entrypoint
2026-03-30 13:18:39 +02:00

10 lines
262 B
Bash
Executable File

#!/bin/bash -e
# If running the rails server or bundle install, run standard setup
if [ "$1" == "./bin/rails" ] && [ "$2" == "server" ] || [ "$1" == "bin/dev" ]; then
bundle check || bundle install
./bin/rails db:prepare 2>/dev/null || true
fi
exec "${@}"