clarion/bin/docker-entrypoint

10 lines
217 B
Plaintext
Raw Normal View History

2024-04-12 19:48:36 +03:00
#!/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
./bin/rails db:migrate
fi
exec "${@}"