Skip to content

Commit

Permalink
dassie: ensure docker-compose seeds the application
Browse files Browse the repository at this point in the history
  • Loading branch information
dunn authored and tamsin johnson committed Apr 11, 2022
1 parent b852ade commit 017f39f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dassie/db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
end

if seed_dassie
puts 'Seeding Dassie ...'

Hyrax::RequiredDataSeeder.new.generate_seed_data
Hyrax::TestDataSeeders::UserSeeder.generate_seeds
end
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ services:
user: root
env_file:
- .env
- .dassie/.env
command: sh -l -c 'bundle && db-migrate-seed.sh'
depends_on:
- postgres
Expand Down

0 comments on commit 017f39f

Please sign in to comment.