blob: ed31659f40caef03d61a834800c58779f05dc9ef (
plain)
1
2
3
4
5
6
7
8
|
#!/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
fi
exec "${@}"
|