diff options
Diffstat (limited to 'bin/docker-entrypoint')
-rw-r--r-- | bin/docker-entrypoint | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint new file mode 100644 index 0000000..67ef493 --- /dev/null +++ b/bin/docker-entrypoint @@ -0,0 +1,8 @@ +#!/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 "${@}" |