tsdataclinic / scout

Scout is a data discovery tool to explore open data portals worldwide.
https://scout.tsdataclinic.com
Apache License 2.0
33 stars 12 forks source link

Run data sync as a script decoupled from server startup #278

Closed jps327 closed 2 years ago

jps327 commented 2 years ago

Currently, syncing data involves starting up the server with an UPDATE_ON_BOOT environment variable. This should be unnecessary. Ideally we should be able to seed the database by just running a script that does not rely on server startup to work. This would improve developer experience during set up significantly, and would simplify deployments to production by a lot as well.

jps327 commented 2 years ago

This is not necessary anymore. Using yarn seed-database-dev is easy enough for now, and removing dependency on UPDATE_ON_BOOT won't materially change developer experience. It was really just about having a startup command.