Files
baclight/bin/docker-entrypoint-production
T

15 lines
246 B
Bash
Raw Normal View History

#!/bin/bash -e
echo "${*}"
# If running the rails server then create or migrate existing database
# if [ "${*}" == "./bin/rails server" ]; then
# ./bin/rails db:prepare
# fi
if [ -n "$RENDER" ]; then
./bin/rails db:migrate
fi
2023-09-30 20:52:18 -07:00
exec "${@}"