10 lines
262 B
Bash
Executable File
10 lines
262 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# If running the rails server or bundle install, run standard setup
|
|
if [ "$1" == "./bin/rails" ] && [ "$2" == "server" ] || [ "$1" == "bin/dev" ]; then
|
|
bundle check || bundle install
|
|
./bin/rails db:prepare 2>/dev/null || true
|
|
fi
|
|
|
|
exec "${@}"
|