madetech / productionisation

The Made Tech Productionisation Checklist for Software Projects
https://productionisation.io/
Creative Commons Attribution 4.0 International
7 stars 2 forks source link

Update Makefile RFC to include seed task target definitions #5

Open antdking opened 6 years ago

antdking commented 6 years ago

Preferred targets would be:

make development-seed-batch make development-seed-full

Is this even feasible? For example WATG and Diners club, very tricky to just pull down 5 accounts/products from those sites to use for local development.

davidwinter commented 6 years ago

With the make development-seed-full it'd be great if a dump is pulled down, that it depends on a separate Makefile target so that it knows if a dump already exists, and will use that unless you specifically delete a previous dump to retrieve a fresh one.

development-seed-full: private/db/dumps/dump_file.sql
   mysql < private/db/dumps/dump_file.sql

private/db/dumps/dump_file.sql:
  mysqldump blah blah blah > private/db/dumps/dump_file.sql
antdking commented 6 years ago

as with the other issues targetting RFCs, I feel this is in the wrong place, and should go in the RFCs repo