Elixir umbrella applications can be smoothly hot-upgraded with DeployEx.
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
- Build the initial release (e.g.,
0.1.0):
# Release the version 0.1.0
MIX_ENV=prod mix assets.deploy
MIX_ENV=prod mix release- Update the version (e.g., from
0.1.0to0.1.1) inversion.txt - Build the new release with forced compilation:
MIX_ENV=prod mix assets.deploy
MIX_ENV=prod mix compile --force
MIX_ENV=prod mix releaseIf using Observer Web, install it in only one app (recommended: the LiveView web app).