Bakeware (bakeware v0.2.4) View Source

Link to this section Summary

Functions

Assembler function to be used as a Mix release step

Link to this section Functions

Assembler function to be used as a Mix release step

This will assemble the necessary components to create a Bakeware executable that can be distributed across machines to run the script/application without extra environment setup (such as installing Elixir/Erlang, etc)

To use, add this to your release as a step after assembly:

def release do
  [
    demo: [
      steps: [:assemble, &Bakeware.assemble/1]
    ]
  ]
end

Bakeware adds the following options in the release scoped to :bakeware key:

  • :compression_level - Zstandard compression level (1 to 19) where higher numbers generally result in better compression, but are slower to build
  • :start_command - The start script command to run when invoked. This defaults to "start", but can be changed to "start_iex", for example, if you want a prompt. See Mix.Release for supported commands.
def release do
  [
    demo: [
      bakeware: [
        compression_level: 1,
        start_command: "daemon"
      ]
    ]
  ]
end