Files
baclight/bin/docker-entrypoint-production
T
2023-09-30 20:52:18 -07:00

11 lines
256 B
Bash
Executable File

#!/bin/bash -e
# If running the rails server then create or migrate existing database
# if [ "${*}" == "./bin/rails server" ]; then
# ./bin/rails db:prepare
# fi
if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi
exec "${@}"