#!/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 "${@}"