3 ms·
Using exrm its a very simple setup. You get a deployable tar file which gives you the ability to migrate up and down as well. The only issue i have is wrt to ru
by ocean3 11y ago
Using exrm its a very simple setup. You get a deployable tar file which gives you the ability to migrate up and down as well. The only issue i have is wrt to running migrations on deploy server.
Go is very good for services. But i didn't find any mature libraries like Phoenix.
- commentzorro 11y agoExrm looks good for updating an already established application. Doesn't look like it does anything for the initial setup and configuration of a new system though. For me, the ultimate test is can I copy my application to a flash drive, walk it to a new clean system, and "paste" it to that new system. Go really does let me do that. > But i didn't find any mature libraries like Phoenix. Yup. But then I tend not to need larger frameworks with my Go apps. Like you allude to, Go apps tend to be less monolithic.
- IanCal 11y ago> For me, the ultimate test is can I copy my application to a flash drive, walk it to a new clean system, and "paste" it to that new system. Go really does let me do that. That used to be the case for erlang deployments that looked pretty similar, and Exrm looks like it does the same thing: https://hexdocs.pm/exrm/extra-deployment.html https://hexdocs.pm/exrm/extra-deployment.html There are five stages to creating and deploying a first release. The first is just generating it, the next three are for moving the release to a new place and the third is just decompressing it. Live upgrades/downgrades seem pretty similar: https://hexdocs.pm/exrm/extra-upgrades-and-downgrades.html https://hexdocs.pm/exrm/extra-upgrades-and-downgrades.html
- commentzorro 11y agoClearly I'm not as up to speed as I might be. How do I avoid installing and configuring Erlang, Elixir, Phoenix, etc. on each machine I want to "paste" to? How do I bundle all these into one extract and go package?
- ocean3 11y agoThe tar contains erlang runtime. It has config file as well which can edited to change the setting.
- commentzorro 11y agoThen definitely more interesting than my cursory look. I don't see any mention of bundling the runtime but I'll take your word and dig around a bit more. Thanks for the info.
- ocean3 11y agoIf its the same architecture then you can copy the tar file to another system and run it. Its the same for Go apps except you get a binary. I do not want to recreate all the structure( I basically do web apps). Phoenix provides good defaults. If it was few lines of code then Go is fine, for larger project i prefer Phoenix( prefer might not be the right word since i don't have elixir prod apps while i do have Go apps)