我正在阅读维加斯的描述,这是一颗宝石
旨在解决创建 Sinatra/Rack 应用程序的可执行版本的简单问题。
我不知道这是一个需要解决的问题。
这似乎是可疑的好处的原因是因为:
Now if you run ./my_app it should:
* find an appropriate rack handler (thin. mongrel)
* find an available port
* launch the app in a browser
* put itself in the background
* write a .pid and a .url file
运行 Sinatra 应用程序不是已经非常容易了吗?你只需输入
ruby my_app.rb
除了应用程序是后台进程之外,所有这些相同的事情都会发生。
为什么你需要一个可执行文件呢?