문제

I have an old project with classic Sinatra (not modular < Sinatra::Base). How can I make it use the Puma web server instead of Thin?

The only examples on the internet I could find using Puma were with modular Sinatra.

reference: http://www.sinatrarb.com/intro.html#Modular%20vs.%20Classic%20Style

도움이 되었습니까?

해결책

Or if you just want use rakeup you can add to your config.ru

#\ -s puma
require './yourapp'
run Sinatra::Application

다른 팁

Just create config.ru:

require './yourapp'
run Sinatra::Application

then run:

puma
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top