edeliver v1.5.1 Releases.Plugin.LinkConfig
Distillery plugin to link the vm.args
or sys.config
file on deploy hosts.
Because distillery uses :systools_make.make_tar(...)
to create the release
tar which resoves all links using the :dereference
option, the release
tar needs to be repackaged including the links. To be able use this plugin,
it must be added in the rel/config.exs
distillery config as plugin like this:
environment :prod do
..
plugin Releases.Plugin.LinkConfig
end
Link to this section Summary
Functions
Called after assembling the release
Called when the user invokes the mix release.clean
task
Called after packaging the release
Called before assembling the release
Called before packaging the release
Link to this section Functions
Called after assembling the release.
Should return a modified %Release{}
or nil
.
Callback implementation for Mix.Releases.Plugin.after_assembly/2
.
Called when the user invokes the mix release.clean
task.
The callback will be passed the command line arguments to mix release.clean
.
It should clean up the files the plugin created. The return value of this
callback is ignored.
Callback implementation for Mix.Releases.Plugin.after_cleanup/2
.
Called after packaging the release.
Should return a modified %Release{}
or nil
.
When in dev_mode
, the packaging phase is skipped.
Callback implementation for Mix.Releases.Plugin.after_package/2
.
Called before assembling the release.
Should return a modified %Release{}
or nil
.
Callback implementation for Mix.Releases.Plugin.before_assembly/2
.
Called before packaging the release.
Should return a modified %Release{}
or nil
.
When in dev_mode
, the packaging phase is skipped.
Callback implementation for Mix.Releases.Plugin.before_package/2
.