News for hackers. Stuff that matters.
Re:From Node to Ruby on Rails by bgroat on Thursday December 16, 2021 @09:43AM (#29578589)
In terms of ease of hosting?

I'm considering migrating to Phoenix and my biggest concern is ease of deployment

Re:From Node to Ruby on Rails by AlchemistCamp on Thursday December 16, 2021 @10:41AM (#29579284)
It'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

Re:From Node to Ruby on Rails by jfabre on Thursday December 16, 2021 @09:50AM (#29578676)
I'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.
Re:From Node to Ruby on Rails by jamil7 on Thursday December 16, 2021 @10:25AM (#29579068)
I got around to trying 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.
Re:From Node to Ruby on Rails by AlchemistCamp on Thursday December 16, 2021 @10:33AM (#29579177)
Yes, 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-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.

Re:From Node to Ruby on Rails by anurag on Thursday December 16, 2021 @12:18PM (#29580730)
(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

Re:From Node to Ruby on Rails by Inversechi on Thursday December 16, 2021 @11:16AM (#29579754)
On the topic of render there was a really nice podcast on Software Engineering Daily from the founder talking about their product.

https://softwareengineeringdaily.com/2021/12/07/render-with-...

Re:From Node to Ruby on Rails by leodriesch on Thursday December 16, 2021 @10:42AM (#29579292)
You 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

Re:From Node to Ruby on Rails by bliteben on Thursday December 16, 2021 @10:45AM (#29579334)
what a horrible name for a site, I can't imagine googling for how to add x extension to postgres with render.
Re:From Node to Ruby on Rails by toqy on Thursday December 16, 2021 @12:18PM (#29580721)
what 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.

Re:From Node to Ruby on Rails by jamil7 on Friday December 17, 2021 @03:22AM (#29589399)
Query + render.com seems to do the trick.
Re:From Node to Ruby on Rails by lostcolony on Thursday December 16, 2021 @10:23AM (#29579047)
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.
Re:From Node to Ruby on Rails by SkyPuncher on Thursday December 16, 2021 @10:35AM (#29579204)
I'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.
Re:From Node to Ruby on Rails by cultofmetatron on Thursday December 16, 2021 @10:13AM (#29578926)
at 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

Re:From Node to Ruby on Rails by dnautics on Thursday December 16, 2021 @09:50AM (#29578672)
I hear fly.io is good.
Re:From Node to Ruby on Rails by nix23 on Thursday December 16, 2021 @10:07AM (#29578856)
It's excellent, and a pretty generous free-tier i think.
Re:From Node to Ruby on Rails by pier25 on Thursday December 16, 2021 @10:04AM (#29578820)
It's great
Re:From Node to Ruby on Rails by cutler on Friday December 17, 2021 @06:54AM (#29591000)
Agreed. Immutable functional Elixir is the very opposite programming model of mutable state Ruby OOP.