开发者

Passenger with Prawn won't start

I have a app that uses Prawn to do some PDF generating, it works fine and I've had no problems with it. It's now come to the point where I want to test it through Apache using Passenger. This is where the problem appears. I get the passenger error page with this error:

no such file to load -- prawn (MissingSourceFile)

I restarted script/server and it didn开发者_如何学编程't error at all so I'm at a loss as to why this isn't working.


It sounds like you didn't install the Prawn gem on the production server. Try sudo gem install prawn.


The problem is that although the prawnto plugin loads up the prawn gem no problem it can't when running through passenger. So you have to add the config.gem line to environment.rb

config.gem "prawn"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜