Sinatra 需要重新启动
我刚刚开始使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这本书现在有关于这个主题的内容: 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