Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Building Elixir App Release with Distillery and Docker

555 visualizaciones

Publicado el

ElixirTw Meetup 2016 Dec

Publicado en: Tecnología
  • Sé el primero en comentar

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>

×