1

Is there a clean way to launch an embedded Sinatra app from within an existing EventMachine loop? I have a client-server gem (a chatbot) powered by an EM loop and I'd like to spin up an Sinatra admin interface inside of this single running process. What's the best way to do this?

Andrew
  • 33
  • 2

1 Answers1

0

Take a look at Vegas.

It basically lets you fire up any rack application from inside a gem. It's what the Resque web interface uses. I've used it myself with hooves (for unicorn support) too.

d11wtq
  • 34,788
  • 19
  • 120
  • 195
  • This worked for me: http://stackoverflow.com/questions/2999430/any-success-with-sinatra-working-together-with-eventmachine-websockets – Andrew Jan 02 '12 at 03:22