Skip to content

Instantly share code, notes, and snippets.

@AndrewDryga
Last active August 19, 2017 13:55
Show Gist options
  • Save AndrewDryga/bc250393ed75b5bfff10dd00120bc30d to your computer and use it in GitHub Desktop.
Save AndrewDryga/bc250393ed75b5bfff10dd00120bc30d to your computer and use it in GitHub Desktop.
Configuration and Deployment article examples: rel/config.ex
use Mix.Releases.Config,
# This sets the default release built by `mix release`
default_release: :default,
# This sets the default environment used by `mix release`
default_environment: :default
environment :default do
# Copy files into release instead of creating symlink for them
set dev_mode: false
# Do not include ERTS
set include_erts: false
# Do not include source code
set include_src: false
# Set the Erlang distribution cookie
set cookie: :"this_is_a_secret"
end
release :myapp do
set version: current_version(:myapp_api)
set applications: [
# shutdown the node if the application crashes permanently
myapp_api: :permanent
]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment