Files
openfoodnetwork/docker/seed.ps1
Neal Chambers 21b7e6e567 Use Dockerv2
2024-09-26 09:21:00 +09:00

13 lines
578 B
PowerShell

# This is the data seeding script :
# - reset the database
# - prepare the database
# - seed the database with sample data
Write-Host "bundle exec rake db:reset : reset the dev and test databases" -ForegroundColor Blue
docker compose run web bundle exec rake db:reset
Write-Host "bundle exec rake db:test:prepare : prepare the database" -ForegroundColor Blue
docker compose run web bundle exec rake db:test:prepare
Write-Host "bundle exec rake ofn:sample_data : seed the database with sample data" -ForegroundColor Blue
docker compose run web bundle exec rake ofn:sample_data