#!/bin/sh set -e cd "$(dirname "$0")/.." # ensure everything in the app is up to date. script/bootstrap [ -f ".env" ] && { source .env echo "===> Running migrations..." createdb -U apollo apollo || true migrate -path=./migrations -database=$DATABASE_URL up }