ryz310/my_api_client

View on GitHub
rails_app/rails_7.1/bin/docker-entrypoint

Summary

Maintainability
Test Coverage
#!/bin/bash -e

# If running the rails server then create or migrate existing database
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
  ./bin/rails db:prepare
fi

exec "${@}"