main
text 8 lines 203 Bytes
Raw
1 #!/bin/bash -e
2
3 # If running the rails server then create or migrate existing database
4 if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
5 ./bin/rails db:prepare
6 fi
7
8 exec "${@}"