-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rel/config.exs to configure distillery
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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, | ||
default_release: :default, | ||
default_environment: Mix.env() | ||
|
||
|
||
environment :dev do | ||
set dev_mode: true | ||
set include_erts: false | ||
set cookie: :"H`|_.kDAg_~4TVZ!aB/B/S3>E|C6o|~noC_!fV/8F<^>1he.*XI^C(;7fOV1Jh;B" | ||
end | ||
|
||
environment :prod do | ||
set include_erts: false | ||
set include_src: false | ||
set cookie: :"xR=}b(ZcHU8M1Lu&642.m{u{O)H]WD>[&&_5t8FW3t5mxy4nw=de~;lEbw*?EFXC" | ||
end | ||
|
||
release :poxa do | ||
set version: current_version(:poxa) | ||
set applications: [ | ||
:runtime_tools | ||
] | ||
plugin Conform.ReleasePlugin | ||
end | ||
|