【发布时间】:2011-07-01 19:13:16
【问题描述】:
class App < Sinatra::Base
def hello
"world"
end
end
从文档中我发现我可以像这样启动应用程序:
App.run
虽然这不会返回控件。
如何在后台启动应用程序以及如何停止它。
我的环境是:Windows,Ruby 1.9.2
【问题讨论】:
-
退货控制是什么意思?就像在命令提示符下?此外,您拥有的代码还远远不能工作
-
thin 甚至可以在 Windows 上运行吗?