-
Notifications
You must be signed in to change notification settings - Fork 58
[Deployment] Distillery
Dimitrios Zorbas edited this page Mar 24, 2018
·
4 revisions
Creating releases via distillery is supported since version 0.6.0.
- Add
{:distillery, "1.3.1"}
as a dependency in yourmix.exs
and runmix deps.get
- Make sure you have
config :kitto, root: :otp_app
in youconfig/prod.exs
- Get the latest
webpack.config.js
which builds production assets inpriv/static
. - Get the distillery config directory and its contents from https://github.com/kittoframework/kitto/tree/master/installer/templates/new/rel
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