Last active
August 19, 2017 13:55
-
-
Save AndrewDryga/bc250393ed75b5bfff10dd00120bc30d to your computer and use it in GitHub Desktop.
Configuration and Deployment article examples: rel/config.ex
This file contains hidden or 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
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