applications, in their compiled form (i.e. BEAM files), along with various metadata files, such as vm.args, configuration files, boot scripts, and management scripts in the form of shell or batch files, depending on your platform. Releases may also contain the Erlang Runtime System (ERTS) it depends on. • https://hexdocs.pm/distillery/introduction/ terminology.html
dev_mode: true set include_erts: false end environment :prod do set include_erts: true set include_src: false end release :myapp do set version: current_version(:myapp) end
==> You have set dev_mode to true, skipping archival phase Release succesfully built! To start the release you have built, you can use one of the following tasks: # start a shell, like 'iex -S mix' > _build/dev/rel/myapp/bin/myapp console # start in the foreground, like 'mix run --no-halt' > _build/dev/rel/myapp/bin/myapp foreground # start in the background, must be stopped with the 'stop' command > _build/dev/rel/myapp/bin/myapp start If you started a release elsewhere, and wish to connect to it: # connects a local shell to the running node > _build/dev/rel/myapp/bin/myapp remote_console # connects directly to the running node's console > _build/dev/rel/myapp/bin/myapp attach For a complete listing of commands and their use: > _build/dev/rel/myapp/bin/myapp help
o diretório config/ • mix release vai substituir o Distillery • o Mix vai ter suporte à config providers: • você vai poder ler configurações de diversas formas.
include_src: false set cookie: :"long-cookie-here" set vm_args: "rel/vm.args" set overlays: [ {:copy, "rel/runtime_config/config.exs", "etc/runtime_config.exs"} ] set config_providers: [ {Mix.Releases.Config.Providers.Elixir, ["${RELEASE_ROOT_DIR}/etc/runtime_config.exs"]}, ] end