#!/usr/bin/env bash
set -eu
cd "$(dirname "${BASH_SOURCE[0]}")"

docker-compose up -d --remove-orphans
docker-compose ps

bundle

echo "Creating databases..."

rails db:setup TARGET_DB=sqlite
rails db:setup TARGET_DB=mysql
rails db:setup TARGET_DB=postgres
