mix_deploy v0.5.0 mix deploy.local View Source

This task deploys a Distillery release to the local machine.

It extracts the release tar to a timestamped directory like /srv/:app/releases/20170619175601, then makes a symlink from /srv/:app/current to it.

This module looks for configuration in the mix project, to get the app and version, and under the application environment under mix_deploy.

  • base_dir sets the base directory, default /srv.
  • deploy_dir sets the target directory completely manually, ignoring base_dir and app.

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args

Link to this section Functions

Link to this function

deploy_release(cfg) View Source
deploy_release(Keyword.t()) :: no_return()

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.