From 40a78e7cec8e783a6c2c11e222616f42f46eaaef Mon Sep 17 00:00:00 2001 From: kballou Date: Thu, 16 Nov 2017 22:37:01 -0700 Subject: Add rel config --- rel/config.exs | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 rel/config.exs (limited to 'rel') diff --git a/rel/config.exs b/rel/config.exs new file mode 100644 index 0000000..34e9d2a --- /dev/null +++ b/rel/config.exs @@ -0,0 +1,53 @@ +# 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. +Path.join(["rel", "plugins", "*.exs"]) +|> Path.wildcard() +|> Enum.map(&Code.eval_file(&1)) + +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: Mix.env() + +# For a full list of config options for both releases +# and environments, visit https://hexdocs.pm/distillery/configuration.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: :":pnn&XWk|)cEy0wVxZf2w.$br1bfr}R$0|OR^~e3G^*RLx6Y_S.1$TOcn=1t<6,b" +end + +environment :prod do + set include_erts: true + set include_src: false + set cookie: :")WZtddAP:QV&.u/_3),jOpl$EGYf)_c_z9XIZ:?{KPz1c;Fdr[e.5aBI