RoR 中 Spring 服务器的功能是什么?

What is the function of a Spring server in RoR?

我刚刚在 Rails 教程中完成了 Micheal Hartl 的 Ruby 第 3 章。在本章的最后部分,他要求将 gitignore 文件配置为不 运行 与 spring 服务器 "supplied by Rails to speed up loading time" 冲突。我完全不熟悉编程,想更清楚地了解这个 Spring 服务器是什么。我试着用谷歌搜索,但没有外行的答案。谢谢!

Spring GitHub page中明确提到:

Spring is a Rails application preloader. It speeds up development by keeping your application running in the background so you don't need to boot it every time you run a test, rake task or migration.

这只是意味着 Spring 是负责在您对代码进行更改时重新加载代码的单元,这样您就不必在每次进行这些更改时都重新启动服务器。