5 ms·
In terms of ease of hosting? I'm considering migrating to Phoenix and my biggest concern is ease of deployment
by bgroat 5y ago
In terms of ease of hosting?
I'm considering migrating to Phoenix and my biggest concern is ease of deployment
- SkyPuncher 5y agoI've deployed Rails at a few different companies. I wouldn't quantify it has hard by any means, there's just a lot of configurations to read through and verify every time. Realistically, the defaults are complete sane and could be deployed as is without much change.
- cutler 5y agoAgreed. Immutable functional Elixir is the very opposite programming model of mutable state Ruby OOP.
- dnautics 5y agoI hear fly.io is good.
- jfabre 5y agoI've just tried heroku so far and took me about 30 min to deploy my prototype, but I read there are limitations. Go take a look at fly.io and I think there's also another one that specialize in elixir hosting. Once I understand elixir/erlang better, I will probably want to host there.
- lostcolony 5y agohttps://www.gigalixir.com/ https://www.gigalixir.com/ is likely what you're referencing. Since they're focused on Elixir first it supports a buncha the nice things the BEAM supports, such as native clustering, hot upgrades, and opening a REPL to a running cluster.
- jamil7 5y agoI got around to trying https://render.com/ https://render.com/ recently, it's also pretty easy and cheaper than Heroku, I think they support Phoenix/Elixir but I've never used it or tried. Also side note Heroku seems to have just stalled and atrophied as a product since the Salesforce acquisition, still one of the easiest hosts though.
- anurag 5y ago(Render founder) Lots of Phoenix/Elixir apps are hosted natively (no Docker) on Render, and of course we support Dockerized apps as well. https://render.com/docs/deploy-phoenix https://render.com/docs/deploy-phoenix
- AlchemistCamp 5y agoYes, they support Elixir (including clustered apps) and it's very easy. I wrote a tutorial and did a 6 minute screencast on that a while back: https://alchemist.camp/articles/elixir-releases-deployment-render https://alchemist.camp/articles/elixir-releases-deployment-r... I generally use a VPS, but Render is a top-notch host if you want something managed. In many ways, I think it's like Heroku was before Salesforce bought them.
- leodriesch 5y agoYou can deploy pretty much anything on Render, AFAIK it’s all container based. Here’s the docs for Phoenix deployments: https://render.com/docs/deploy-phoenix https://render.com/docs/deploy-phoenix
- bliteben 5y agowhat a horrible name for a site, I can't imagine googling for how to add x extension to postgres with render.
- toqy 5y agowhat type of results do you imagine you'd get for that kind of query rather than what you'd want to get? especially given the context of postgres extension, i'd assume if there was content out there that google would find it with that query. A friend of mine who worked at an SEO agency once had a client who's company name was a misspelling of some noun that google would automatically fix which i found hilarious.
- cultofmetatron 5y agoat a base, you can use heroku. That said, you won't be able to have your nodes communicate with each other. This restricts you from some of the more advanced featues. For Example, at my startup, we use horde to dynamically spin up individual websocket connections per customer for a integration partner. This was easy to do using horde and simply connecting the nodes together. Additionally, we can use the built in key store which is global to the cluster. I would take a look at render.com. they support connected nodes and autodiscovery
- AlchemistCamp 5y agoIt's ridiculously easy. Even 6 years ago when I started, you could just run it in production with `mix phx.server`, much like running `rails server` and use the exact same deployment patterns. Or you could build a release and copy it up to the server however you saw fit. At that time it was painful for some coming from different habits that involved pulling in config at run-time rather than compile time, but those patterns have also been supported since at least 2019. Since then, the team has been continually making it easier. Now there's a single command line to do a deploy to Fly and also one to build a docker container for you if that's what you want: https://twitter.com/chris_mccord/status/1468998944009166849 https://twitter.com/chris_mccord/status/1468998944009166849
- deleted 5y ago[deleted]