Ask HN: 你们都把 Go 应用托管在哪里?

2作者: asim7 个月前
简单的问题。你们在哪里以及如何托管 Go 应用?我觉得要么得运行虚拟机,要么就得为 Google Cloud 的复杂性买单。<p>我知道肯定有人会提到 Fly 或 Railway 之类的,但我想听听第一手的经验。<p>就我个人而言,我还在用 DigitalOcean,我用 git pull 拉取代码,从源码编译,然后运行 Go 二进制文件,偶尔会用 shell 脚本。前面用的是 nginx 和 certbot/letsencrypt。就这些。出于某种原因,我希望有一个更简单的解决方案,而不是现在各种各样的托管方案。我总是担心 Fly、Railway 或其他公司会倒闭。我觉得其他工具太复杂了,而专门的应用托管又太贵了。虚拟机加上一些开源方案用起来不错。但我想当你把托管外包给别人的时候,你就会开始期待各种各样的工具。也许如果有一个基于 CLI 的专用工具就好了。谁知道呢。
查看原文
Simple question. Where and how do you host your Go apps? I feel like either you have to run a VM or pay for the complexity of a Google cloud.<p>I&#x27;m sure some people will now say things like Fly or Railway but curious to know firsthand.<p>Personally I&#x27;m still using DigitalOcean, I git pull, compile from source and run the Go binary, occassionally with a shell script. It&#x27;s fronted by nginx and certbot&#x2F;letsencrypt. That&#x27;s it. For some reason I wish this was some simple solution instead of the endless variety of hosting out there. I always worry about Fly, Railway or someone else going out of business. I find other tools really complicated, and dedicated app hosting too expensive. A VM plus some open source works well. But I guess when you offloading that hosting to someone else you start expecting all sorts of tools. Maybe if there was just a dedicated CLI based thing. Who knows.