-
Notifications
You must be signed in to change notification settings - Fork 397
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
fix for start_erl.data - old release getting started after deployment #718
Conversation
…, and replace start_erl.data in var directory if the file in releases dir is newer
@bitwalker Can we get this merged? This is a fix for a serious issue. |
As a temp workaround for edeliver, added this hook to the
Thanks for the PR @delta1 |
If you happen to be using bootleg instead, here's a similar fix: labzero/bootleg#313 |
Nice fix. Would be awesome to have a new patch release for the distillery package! |
@bitwalker thank you so much for making most of Elixir deployment a breeze. This PR has been merged for a few months now, but I still have to deal with this issue on every single project. Can we get a hex release please? I would prefer broken distillery (which I know might be broken) over playing Groundhog Day. (and no, I do not want to install from master, that is even worse than dealing with the same problem over and over again.) |
@Ninigi save your sanity by just forking and then referencing your fork in {:distillery, github: "user/distillery", ref: "1234hash"} # or branch: or tag: Docs: |
…, and replace start_erl.data in var directory if the file in releases dir is newer (bitwalker#718)
Summary of changes
This is a simple change to fix the issue in #693 - where the start_erl.data file in releases/ does not get copied into the mutable dir when the directory already exists.
It is a slightly better fix than #703 since it checks if the start_erl.data file in releases dir is newer than the var version first, instead of blindly copying it every single time.
Checklist
Licensing/Copyright
By submitting this PR, you agree to the following statement, please read before submission!
I certify that I own, and have sufficient rights to contribute, all source code and
related material intended to be compiled or integrated with the source code for Distillery
(the "Contribution"). My Contribution is licensed under the MIT License.
NOTE: If you submit a PR and remove the statement above, your PR will be rejected. For your PR to be
considered, it must contain your agreement to license under the MIT license.