Sinatra 需要重新启动

发布于 2024-09-28 15:25:31 字数 410 浏览 1 评论 0原文

我刚刚开始使用 Sinatra。我在 Ubuntu 上运行 Ruby 1.9.2。在我的第一个问题之后,我遇到了另一个问题:

当我按照 sinatra.rubyforge.org/doc/ 上的简单示例应用程序说明进行操作时,我修改我的源文件,但直到我重新启动 Sinatra 后,更改才明显 - 即使教程提到不需要重新启动。

如何编辑源代码并查看结果,而不必每次都重新启动 Sinatra?

I'm just getting started with Sinatra. I'm running Ruby 1.9.2 on Ubuntu. After my first issue, I've run into another one:

When I follow the simple sample application instructions at sinatra.rubyforge.org/doc/, I modify my source file, but the changes aren't apparent until I restart Sinatra - even though the tutorial mentions there is no need to restart.

How can I edit my source and view the results without having to restart Sinatra every time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无声情话 2024-10-05 15:25:31

这本书现在有关于这个主题的内容: http://sinatra-book.gittr.com/#automatic_code_reloading< /a>

The book has something on the topic now: http://sinatra-book.gittr.com/#automatic_code_reloading

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文