AntiqueAuthBackend / bin /docker-entrypoint
hatamo's picture
Full commit
397e650
#!/bin/bash -e
# If running the rails server then create or migrate existing database
if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
./bin/rails db:prepare
./bin/rails db:seed || true
fi
exec "${@}"