class App < Sinatra::Base def hello "world" end end
From the documentation, I found that I can run the application as follows:
App.run
Although this does not return the control.
How to run the application in the background and how can I stop it.
My environment: Windows, Ruby 1.9.2
windows ruby sinatra thin
Prakash raman
source share