문제

I am running Rails 3 and Ruby 1.8.7 on Windows. I am trying to use 'mongrel_rails start -e production' to run mongrel as proxy server for apache 2.2. I have apache running. When I issue the mongrel_rails command I get:

You have requested : pg >= 0.11.0. Try running 'bundle update pg'

Doing the update does not resolve the issue. I have tried uninstalling and re-installing both pg and mongrel to no avail. I can find no references to this issue anywhere on the web and am totally stumped. Please help.

Update: I have also tried specifying pg >= 0.12.2 and I get the same result. I also tried running mongrel as a service, but couldn't get that to work either, but that is another issue, I suppose.

도움이 되었습니까?

해결책 2

The final answer seems to be, there is no need to use a 'mongrel.conf' file in this configuration. DocumentRoot and ProxyPass url ('http://server-name:3000' in my case) are defined for Mongrel in the VirtualHost specification in httpd.conf file. The SeverName is set to 'server-name:80'.

다른 팁

Update - The answer appears to be not to use 'mongrel_rails start' and just use 'rails server', however, I don't know if that will use the mongrel.conf I have in my app's config folder. And there does not seem to be a way to specify it on the command line.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top