AmericanRedCross / osm-stats

Track and analyze contributions to Missing Maps
http://missingmaps.org
BSD 3-Clause "New" or "Revised" License
26 stars 9 forks source link

Are knex and db/migrations still the way to set up database? #52

Closed rgwozdz closed 6 years ago

rgwozdz commented 6 years ago

One of the original deployment scripts for osm-stats notes the use of knex and db/migrations and db/seeds files for setting up the datastore. Is this still the prescribed way of doing this? I notice that osm-stats-workers has its own set of .sql files but it's not clear to me how they are used or if they supersede the db/migrations files.

mojodna commented 6 years ago

The .sql files supersede knex migrations; run make db/all w/ DATABASE_URL set from osm-stats-workers to initialize the db.