use Mix.Releases.Config,
default_release: :api,
default_environment: Mix.env
environment :dev do
set dev_mode: true
set include_erts: false
set cookie: :"[Redacted]"
end
environment :prod do
set include_erts: true
set include_src: false
set cookie: :"[Redacted]"
end
release :api do
plugin ExrmDeb.Distillery
set version: current_version(:api)
set overlays: [
{:mkdir, "config"},
{:copy, "rel/tmp/api/ejabberd.yml", "config/ejabberd_prod.yml"}
]
set applications: [
:exactor,
:parallel_stream,
api: :permanent,
db: :permanent,
mailchimp: :permanent
]
end
release :slack do
set version: current_version(:slack)
set applications: [
:exactor,
:parallel_stream,
slack: :permanent,
db: :permanent,
mailchimp: :permanent
]
end