Soc/bin/docker-entrypoint

10 lines
181 B
Bash
Executable File

#!/bin/bash -e
# If running the rails server then create or migrate existing database
if [ "${*}" == "./bin/rails server -p 3000" ]; then
./bin/rails db:prepare
fi
exec "${@}"