4 ms·
>I would love to see more cookbook examples of using Elixir but NOT as a Ruby/Rails replacement. I would love to see more examples that get away from web dev w
by jetti 9y ago
>I would love to see more cookbook examples of using Elixir but NOT as a Ruby/Rails replacement.
I would love to see more examples that get away from web dev with Elixir. While it's great with the Phoenix framework there is so much more to Elixir than that. Trying to deploy an elixir daemon has been a pain and I haven't found much around that. There is escript and distillery and while I haven't tried distillery for non-phoenix apps, escript works but deploying is still a pain.
- passer-by-123 9y agoFWIW, deploying a non-Phoenix app with distillery is exactly the same as deploying a Phoenix app.
- jetti 9y agoThanks, I wasn't sure if that was the case.
- ArturT 9y agoSetup deployment takes some time so I prepared blog post and an example Phoenix app how to do it with edeliver, distillery and Ansible playbooks http://blog.lunarlogic.io/phoenix-app-deployment-with-ansible-playbooks-for-elixir http://blog.lunarlogic.io/phoenix-app-deployment-with-ansibl... We spent some time with friend doing research and trying to connect all pieces to make it work.
- jetti 9y agoThanks for the link, but the issue is deploying non-phoenix apps. There are tons of documentation (well relatively tons) on Phoenix app and deployment but console apps in Elixir have very little around that I have found.
- napsterbr 9y agoHey, I've went through the "trouble" of using continuous deployment with elixir and distillery. Since the project I'm working on is open source, you can see how I've done it. It's still far from perfect but maybe it could be a place to start. Elixir app is on https://github.com/hackerexperience/helix https://github.com/hackerexperience/helix. You'd probably be interested on `lib/release.ex` and `rel/`. For the ci, our infrastructure playbooks are at https://github.com/hackerexperience/infrastructure https://github.com/hackerexperience/infrastructure, and you probably want to look at `roles/{helix, erlang, elixir}`. Hit me up if you have questions our would like to discuss further. Email is on profile. Btw, here's a great presentation about the topic: https://youtube.com/watch?v=H686MDn4Lo8 https://youtube.com/watch?v=H686MDn4Lo8
- jetti 9y agoThanks for this, I'll take a look and definitely hit you up if I have questions.
- abrookewood 9y agoDockyard (where Chris McCord works) is currently hiring staff to improve Elixir deployment, so hopefully we will see something that addresses this issue soon enough: https://dockyard.com/press/releases/2017/09/08/dockyard-hiring-to-solve-elixir-deployment https://dockyard.com/press/releases/2017/09/08/dockyard-hiri...