Execute code once Sinatra server is running

Posted by JP on Stack Overflow See other posts from Stack Overflow or by JP
Published on 2010-04-07T00:56:23Z Indexed on 2010/04/07 12:33 UTC
Read the original article Hit count: 259

Filed under:
|

I have a Sinatra Application enclosed in Sinatra::Base and I'd like to run some code once the server has started, how should I go about doing this?

© Stack Overflow or respective owner

Related posts about sinatra

Related posts about ruby