-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tdiary server --cgi
でInternal Server Error
#320
Comments
CGIモードで起動してもRackが有効になっているのは、 #299 Bundlerize の影響? |
CGI の時も Rack を読むようにするのがよさそうです(アイデアレベル) |
ちょっとやってみましたが、CGIの時もRackを使うとassetsの判定にも影響がありますね。 def theme_url
defined?(Rack) ? 'assets' : 'theme'
end CGI動作用のGemfileを別に用意するか、Bundler.requireをやめて手動でrequireする方向で考えてみます。 |
ちゃんと追えていないのですが、この変更を加えた結果、CGIモード( |
…勘違いしていました。 |
「CGI動作用のGemfileを別に用意する」方法で対処。 |
CGIモードで起動すると、Internal Server Errorとなる。
TDiary::RequestはRackが有効な場合にはRack::Requestを使うようになっている。Rack::Requestは引数を1つしか受け取れないため、第2引数の
@cgi
を受け取れずに ArgumentError となる。The text was updated successfully, but these errors were encountered: