Soc/bin/docker-entrypoint

10 lines
181 B
Plaintext
Raw Normal View History

2023-09-29 09:20:41 +00:00
#!/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 "${@}"