Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using required seed task in production #677

Open
jwoertink opened this issue Aug 30, 2021 · 0 comments
Open

Using required seed task in production #677

jwoertink opened this issue Aug 30, 2021 · 0 comments

Comments

@jwoertink
Copy link
Member

Lucky apps come with a task to generate required seed data as well as a task to generate sample seed data. We say that the required seed data is data required for your application to work properly.

Right now with how the task is, getting that task to run in production is a little tricky. We automatically require the factories which live in your specs. If you use Faker, or some other development dependency, then the task won't compile for production. Granted, you're most likely to only ever run this task once for production, but you may also need to run it for staging a few times, and maybe a QA or something...

It seems it would make sense that if you stood up a french new Lucky app, and deployed to production, that this task would be available t o you with little work. I'm not sure what the cleanest way to do that is, but we could set it up as a precompiled task or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant