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
Run seeds after migrations #63
Comments
As mentioned in your post on Elixir Forums, the seeds file can be evaluated manually:
(I'm just adding it here since it feels like the right place for it 🙂) |
To workaround this issue, this is what I have come up with so far that allows the seed file to be loaded during application startup. It's not the most elegant, but it works on both initial startup and when restarting the application. It can be tweaked as needed, but does what is required. (Just make sure to test your seeds file manually first...) Paste this snippet (just the part with the
Now, when you start your application with Again, not perfect, but it's better than running it manually like I was before. |
thanks for the snippet @arcanemachine |
Currently we do not run seeds. These are mostly valuable for when running locally and not having to create new users every single time for ex.
The text was updated successfully, but these errors were encountered: