Sigu Magwa
Sigu Magwa

Reputation: 568

Distillery post start hook fail due to genserver not being started

I have a Genserver which is needed to run before I can seed data. Adding a post start hook fails on distillery release with an error that my genserver is not running.

(exit) exited in: GenServer.call(MyApp.NumberHelper, {:number, #Ecto.Changeset<action: nil, changes: .....

This genserver is a child of my application, the releaseTasks file is the same as the one on docs https://hexdocs.pm/distillery/guides/running_migrations.html

How can I start the genserver so my seeds won't fail?

This genserver works as expected on production, development and test environment. The only problem occurs when I try to run seeds as a post start hook after starting the application

Upvotes: 1

Views: 83

Answers (0)

Related Questions