Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Building Elixir App Release with Distillery and Docker

553 views

Published on

ElixirTw Meetup 2016 Dec

Published in: Technology
  • Be the first to comment

Building Elixir App Release with Distillery and Docker

  1. 1. Deploying Your Elixir App Mickey
  2. 2. 我在2015年年底發現 Elixir 後立⾺馬買下 elixir.tw 這樣我也是⼤大⼤大惹
  3. 3. 但是建構摸⿂魚了了整整⼀一年年
  4. 4. 是⼤大概有點框架了了啦....
  5. 5. –忘了了是 Dave Thomas 還是 Sandi Metz 說的 “I always start with ‘Hello World’.”
  6. 6. So I made this…
  7. 7. …and use distillery • https://github.com/bitwalker/distillery • A replacement for exrm • run migration from release (maybe?)
  8. 8. Syntax error near (
  9. 9. 注意你的 System Architecture • If you built your release on Mac, you can only run the release binary on a Mac Host. • Don’t include ERT • Build with docker, then pull out the release. • https://hexdocs.pm/distillery/ walkthrough.html#deploying-your-release
  10. 10. This is my Dockerfile… • After following the distillery guide… • https://github.com/elixirtw/elixir_tw/blob/master/ Dockerfile • docker run -it -d elixir_tw:latest bash • docker cp <container_id>:/app/rel/elixir_tw/ releases/0.0.1 ./rel/docker_rel • docker rm -f <container_id>

×