ruby - sinatra 的启动方式绝对不要用 rackup,要用 thin start -R config.ru 或者puma

访问量: 193

我把文章发表在了: 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

订阅/RSS Feed

Subscribe

分类/category