enforcer
Hi, I’m having troubles with exrm releases and hot upgrades and still can’t get it right.
I’m following guide in exrm documentation here: Deployment – exrm v1.0.8
To make things simpler, let’s assume I’m starting with clean, new project using mix new test --sup
Then mkdir rel/
echo "{include_erts, false}." > rel/relx.config ...adding exrm to project's deps mix deps.get
mix compile
mix release
mkdir /tmp/test
cp rel/test/releases/0.1.0/test.tar.gz /tmp/
cd /tmp/test
tar -xf /tmp/test.tar.gz
bin/test console`
And everything is nice up to this point…
Then I bump version from 0.1.0 to 0.2.0 and make mix release mkdir -p /tmp/test/releases/0.2.0 cp rel/test/releases/0.2.0/test.tar.gz /tmp/test/releases/0.2.0/ cd /tmp/test bin/test upgrade "0.2.0"
And always it ends up with ERROR: release_handler:check_install_release failed: {no_such_file, "/private/tmp/test/lib/kernel-5.1"}
I can still do it locally if I delete file rel/relx.config, but then my releases are not portable and I’m unable to run them on another machine.
What am I missing?
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










