17 lines
455 B
Batchfile
17 lines
455 B
Batchfile
|
|
:: 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
|