#!/bin/bash

# This assume docker compose build, which takes a long time and builds the image, has already happened, 
# it should on up -d.
# Also, you may need to remove and create the external volumes again for the steps
# below to work correctly.
docker compose up -d
docker compose run --rm bikebike rake db:setup
docker compose run --rm bikebike rake db:migrate 
docker compose run --rm bikebike rake assets:precompile
docker compose down
docker compose up -d 
