hitobito / development

Setup your local machine for hitobito development
GNU Affero General Public License v3.0
19 stars 15 forks source link

Seed the database automatically #20

Closed carlobeltrame closed 3 years ago

carlobeltrame commented 3 years ago

Inspired by https://github.com/nxt-engineering/hitobito-docker/commit/9bd0f0a2e28e506068fbe9edffa6848b1bcebec2

One fewer step to get your hitobito instance up and running! Since the database storage is inside a volume, we can simply also store the "has been seeded" flag in a volume.

People who have used this repo before this PR is merged need to rebuild the containers (git pull && docker-compose build).