9 lines
172 B
Bash
9 lines
172 B
Bash
|
|
#!/bin/bash -e
|
||
|
|
|
||
|
|
# If running the rails server then create or migrate existing database
|
||
|
|
if [ "${*}" == "./bin/rails server" ]; then
|
||
|
|
./bin/rails db:prepare
|
||
|
|
fi
|
||
|
|
|
||
|
|
exec "${@}"
|