otwarchive-symphonyarchive/script/docker/init.cmd

17 lines
455 B
Batchfile
Raw Permalink Normal View History

2026-03-11 22:22:11 +00:00
:: Change directory to root of the repo
cd /D "%~dp0\..\.."
copy config\docker\database.yml config\database.yml
copy config\docker\redis.yml config\redis.yml
copy config\docker\local.yml config\local.yml
docker compose up -d
timeout 60
docker compose run --rm web script/reset_database.sh
:: The development database reset will do everything except run migrations for
:: the test environment:
docker compose run --rm test bundle exec rake db:migrate