8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

sinatraをwindowsでお手軽に起動したらwebrickが遅い

Last updated at Posted at 2013-09-05

症例

社内でお手軽にsinatraでサイト作って公開したは良いけど、windows機(win7)で動くsinatraが、他の端末からアクセスすると平均5秒程度かかる。

解決策

下記参考から抜粋すると、webrickの設定変更で解決する模様。

参考: Rubyでwebrickの動作が遅い場合の対処 - むかぁ~ どっと こむ
   http://mukaer.com/archives/2012/03/16/rubywebrick/

windows機のRubyのインストールフォルダに潜る。
[インストールフォルダ]\lib\ruby\2.0.0\webrick\config.rb

      :DoNotReverseLookup => nil,

を、

      :DoNotReverseLookup => true,

にして、sinatra再起動。
解決した。

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?