-
Notifications
You must be signed in to change notification settings - Fork 45
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
Hot code upgrades do not start porcelain #41
Comments
Any news on this?! |
I'm experiencing the same error. Any updates on workarounds? |
It looks like the Supervisor does survive the hot upgrade, but it is not calling:
Doing this sets:
If this environment variable is not set, you will see the error message that the app is not running. |
I made a little workaround for this which waits a bit after a config change before trying to reinit Porcelain. There may be a more elegant way to do this.
|
I am using https://github.com/gutschilla/elixir-pdf-generator which depends on porcelain.
Elixir: 1.4
Erlang: 19
Porcelain: 2.0.3
Everything works fine, but when I do a hot code upgrade using releases with distillery, I can get error when call the pdf/porcelain code after the upgrade:
When I restart my application/release it works again. So this currently prevents me from using hot code upgrades. Everything else works after the upgrade.
Porcelain is added in the mix.exs file:
I also tried to add it to the distillery release config, without a difference.
Any ideas? Is it better to post this on pdf_generator or distillery issue tracker?
The text was updated successfully, but these errors were encountered: