Home Ruby Sinatra的启动方式绝对不要用rackup,要用thinstart Rconfig.ru或者puma
Post
Cancel

Ruby Sinatra的启动方式绝对不要用rackup,要用thinstart Rconfig.ru或者puma

我把文章发表在了: https://stackoverflow.com/questions/56422645/performance-of-classic-sinatra-and-modular-sinatra-am-i-doing-wrong

闹了个大乌龙: 


1. wrong: $ ruby main.rb (based on rack?)
2. wrong: $ rackup config.ru (based on rack)
3. wrong: $ rackup config.ru -s thin ( event based on rack)
4. correct: $ thin start -R config.ru -e production

This post is licensed under CC BY 4.0 by the author.