2019-12-07 18:17:12 +01:00
|
|
|
# Import all plugins from `rel/plugins`
|
|
|
|
# They can then be used by adding `plugin MyPlugin` to
|
|
|
|
# either an environment, or release definition, where
|
|
|
|
# `MyPlugin` is the name of the plugin module.
|
|
|
|
~w(rel plugins *.exs)
|
|
|
|
|> Path.join()
|
|
|
|
|> Path.wildcard()
|
|
|
|
|> Enum.map(&Code.eval_file(&1))
|
|
|
|
|
|
|
|
use Distillery.Releases.Config,
|
|
|
|
# This sets the default release built by `mix distillery.release`
|
|
|
|
default_release: :default,
|
|
|
|
# This sets the default environment used by `mix distillery.release`
|
|
|
|
default_environment: Mix.env()
|
|
|
|
|
|
|
|
# For a full list of config options for both releases
|
|
|
|
# and environments, visit https://hexdocs.pm/distillery/config/distillery.html
|
|
|
|
|
|
|
|
|
|
|
|
# You may define one or more environments in this file,
|
|
|
|
# an environment's settings will override those of a release
|
|
|
|
# when building in that environment, this combination of release
|
|
|
|
# and environment configuration is called a profile
|
|
|
|
|
|
|
|
environment :dev do
|
|
|
|
# If you are running Phoenix, you should make sure that
|
|
|
|
# server: true is set and the code reloader is disabled,
|
|
|
|
# even in dev mode.
|
|
|
|
# It is recommended that you build with MIX_ENV=prod and pass
|
|
|
|
# the --env flag to Distillery explicitly if you want to use
|
|
|
|
# dev mode.
|
|
|
|
set dev_mode: true
|
|
|
|
set include_erts: false
|
|
|
|
set cookie: :"5MEZn{TTU:$GyE/DgOAV0GhEWU>Gj>YwWXmo&pd3t~L8gHVrlSR>8W9API~YL=&^"
|
|
|
|
end
|
|
|
|
|
|
|
|
# N.B.: this cookie has to do with how distributed Erlang authenticates
|
|
|
|
# communication between nodes. With correct firewall configuration, you do not
|
|
|
|
# need to change it.
|
|
|
|
environment :prod do
|
|
|
|
set include_erts: true
|
|
|
|
set include_src: false
|
|
|
|
set cookie: :";?PAn6iwn<<(~GAez2sS/|aNd{tV(k7j%0v3`eD]YN}Ii@?ws$RW|%iuBD<j%9zg"
|
|
|
|
set vm_args: "rel/vm.args"
|
|
|
|
end
|
|
|
|
|
|
|
|
# You may define one or more releases in this file.
|
|
|
|
# If you have not set a default release, or selected one
|
|
|
|
# when running `mix distillery.release`, the first release in the file
|
|
|
|
# will be used by default
|
|
|
|
|
|
|
|
release :philomena do
|
2019-12-07 19:58:45 +01:00
|
|
|
set version: current_version(:philomena)
|
2019-12-07 18:17:12 +01:00
|
|
|
set applications: [
|
2019-12-07 19:00:31 +01:00
|
|
|
:runtime_tools,
|
|
|
|
philomena: :permanent
|
2019-12-07 18:17:12 +01:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|