strapi / foodadvisor

🥘 THE Strapi demo application
MIT License
1.09k stars 446 forks source link

Use a sql dump to seed data #36

Closed alexandrebodin closed 4 years ago

alexandrebodin commented 4 years ago

Use a sql file instead of a binary to make seeding cross platform

christianguevara commented 4 years ago

Hey, thanks for the improvement about cross platform but cat is not available on windows.

EDIT: Maybe instead of doing cat in the exec section, we can swap it to sqlite3 .tmp/data.db < data/dump.sql