Skip to content

[Deployment] Distillery

Dimitrios Zorbas edited this page Mar 24, 2018 · 4 revisions

Creating releases via distillery is supported since version 0.6.0.

Instructions

  1. Add {:distillery, "1.3.1"} as a dependency in your mix.exs and run mix deps.get
  2. Make sure you have config :kitto, root: :otp_app in you config/prod.exs

For Applications Generated using installer < 0.6.0

  1. Get the latest webpack.config.js which builds production assets in priv/static.
  2. Get the distillery config directory and its contents from https://github.com/kittoframework/kitto/tree/master/installer/templates/new/rel

Creating the release

Run:

MIX_ENV=prod mix release --env=prod

You can then start the release like:

_build/prod/rel/<you-dashboard-app>/bin/<your-dashboard-app> foreground

Suggested read: https://hexdocs.pm/distillery/walkthrough.html#deploying-an-upgrade