Deploying modern web apps – with all the provisions needed to be fast and secure while easily updateable – has become so hard that many developers don’t dare do it without a PaaS (platform-as-a-service). But that’s ridiculous.部署现代web应用程序(具有快速、安全和易于更新所需的所有规定)变得如此困难,以至于许多开发人员在没有PaaS(平台即服务)的情况下不敢这样做。但这太荒谬了。 Despite being a beta release, the vast majority of everything that’s included has already been thoroughly battle-tested. Rails is uniquely blessed to have huge applications like Shopify and GitHub, along with plenty of other apps of all sizes, run right on the bleeding edge of the framework to ensure that issues are caught early.尽管是测试版,但其中包含的绝大多数内容都已经过彻底的战斗测试。Rails有幸拥有Shopify和GitHub等大型应用程序,以及许多其他各种规模的应用程序,它们都在框架的最前沿运行,以确保及早发现问题。 Rails 8 is dropping just a few months after Rails 7.2, but on top of all these incredible new tools presented above, also includes a wealth of fixes and improvements. Rails has never been firing harder on all cylinders than what we’re doing at the moment.Rails 8在Rails 7.2发布几个月后就开始下降,但除了上面介绍的所有这些令人难以置信的新工具外,还包括大量的修复和改进。Rails从未像我们现在所做的那样,在所有方面都更加努力。 It’s an incredible time to be involved with the framework and an excellent moment to hop on our train for the first time. Whether you’re into #NOBUILD or #NOPAAS or simply attracted to the mission of compressing complexity in general, you’ll be right at home with a community of passionate builders who value beautiful code as much as they do productivity.这是一个参与框架的绝佳时刻,也是第一次登上我们的火车的绝佳时刻。无论你是喜欢#NOBUILD还是#NOPAAS,或者只是被压缩复杂性的使命所吸引,你都会和一个充满激情的构建者社区在一起,他们既重视漂亮的代码,也重视生产力。 Rails 8 comes preconfigured with Kamal 2 for deploying your application anywhere. Whether to a cloud VM or your own hardware. Kamal takes a fresh Linux box and turns it into an application or accessory server with just a single “kamal setup” command.Rails 8预先配置了Kamal 2,可以在任何地方部署您的应用程序。无论是云虚拟机还是您自己的硬件。Kamal使用一个新的Linux盒子,只需一个“Kamal setup”命令即可将其转换为应用程序或辅助服务器。 Together with a revised strategy for handling secrets (featuring built-in integration for 1password, Bitwarden, and LastPass) and a new aliases feature to get commands like “kamal console” to start a remote Rails console session, it provides a complete package for handling not just the deployment but the operation of your application in production.再加上处理机密的修订策略(具有1password、Bitwarden和LastPass的内置集成)和新的别名功能,以获取“kamal console”等命令来启动远程Rails控制台会话,它提供了一个完整的包,不仅可以处理部署,还可以处理生产中应用程序的操作。 Part of making Rails easier to deploy is to cut down on the number of accessory services required to get going. In the past, Rails needed either MySQL or PostgreSQL as well as Redis to take full advantage of all its features, like jobs, caching, and WebSockets. Now all of it can be done with SQLite thanks to a trifecta of new database-backed adapters named Solid Cable, Solid Cache, and Solid Queue.使Rails更易于部署的一部分是减少启动所需的辅助服务的数量。在过去,Rails需要MySQL或PostgreSQL以及Redis来充分利用其所有功能,如作业、缓存和WebSockets。现在,得益于名为Solid Cable、Solid Cache和Solid Queue的三个新的数据库支持适配器,所有这些都可以通过SQLite完成。 These adapters are all created from the same premise: Disks have gotten fast enough that we don’t need RAM for as many tasks. This allows us to reap the simplification benefits of SSD and NVMe drives being orders of magnitude faster than good-old spinning rust.这些适配器都是基于同一个前提创建的:磁盘已经变得足够快,我们不需要RAM来完成那么多任务。这使我们能够获得SSD和NVMe驱动器的简化优势,其速度比旧的旋转生锈快几个数量级。 Solid Cable replaces the need for Redis to act as the pubsub server to relay WebSocket messages from the application to clients connected to different processes. It uses fast polling, but it’s still almost as quick as Redis, when run through the same server on SQLite.Solid Cable取代了Redis作为pubsub服务器将WebSocket消息从应用程序中继到连接到不同进程的客户端的需要。它使用快速轮询,但当在SQLite上的同一服务器上运行时,它仍然几乎和Redis一样快。