budget/bin/docker-entrypoint

8 lines
172 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
exec "${@}"