Closed dmarkow closed 5 years ago
Could you paste the contents of foo.sh
? I'd like to see how you are invoking the command so I can reproduce exactly
foo.sh
contents:
#!/bin/sh
release_ctl eval --mfa "Api.ReleaseTasks.foo/1" --argv -- "$@"
I used https://hexdocs.pm/distillery/guides/running_migrations.html as a reference for this (ultimately I'm trying to run migrations, but even my test IO.puts
line is outputting the wrong version)
While I cannot confirm that it is used old code for the ReleaseTask, I can confirm that it is using the wrong version in the executable scripts, meaning that it is looking in the old version's release folder for the migrations.
This is verified, and addressed in master, the fix has been ported to the 2.0.x branch as well
I have same question. distillery version: 2.1.1
Steps to reproduce
Description of issue
Given a custom command:
Before any updates (version 0.1.0)
Now I increment my version from 0.1.0 to 0.1.1 and run a distillery upgrade, but the custom command still outputs "0.1.0" from the first release:
So while running
remote_console
properly uses the new release code, the custom commands still use the old code. Restarting the running app doesn't help, the only way to get the new custom command code to execute is doing a full (not upgrade) release.Distillery: 2.0.12, Erlang 1.7.4, Erlang 21.1.4