简体   繁体   English

Rails App在Mac OS X上运行良好,但杂种无法在Windows 7中回答请求

[英]Rails App Runs fine on Mac OS X but mongrel does not answer requests in Windows 7

I'm having some trouble with a Rails app. 我在使用Rails应用程序时遇到了麻烦。

When the app is deployed on Mac OS X Snow Leopard with MySQL server 5.1, it runs everything fine. 将应用程序部署在带有MySQL服务器5.1的Mac OS X Snow Leopard上时,它可以正常运行。 However, when I deploy it on Windows 7 (either 32 or 64 bit) Mongrel receives the request (i can see the GET request on development.log) but nothing happens, and the browser says "waiting for server" forever. 但是,当我在Windows 7(32位或64位)上部署它时,Mongrel收到了请求(我可以在development.log上看到GET请求),但是什么也没有发生,并且浏览器永远说“等待服务器”。

I have tried to install the same version on Windows as I have on the Mac (mysql 5.1) to no avail. 我试图在Windows上安装与Mac(mysql 5.1)上相同的版本,但无济于事。 I keep getting the same error. 我不断收到相同的错误。

I have checked what happens to the database when i make the GET request using the Mysql Administrator tool. 我已经检查了使用Mysql Administrator工具发出GET请求时数据库的状况。 A new connection appears, from the Rails app database role; 从Rails应用程序数据库角色出现一个新连接; however, it stays in "sleep" forever and the "Time" column keeps increasing... "It looks like its waiting for something... The next life maybe, who knows?" 但是,它永远处于“睡眠”状态,并且“时间”列一直在增加……“看起来它在等待……下辈子,谁知道呢?” :P :P

I am able to migrate the database on windows and even seed the database, but Mongrel wont respond any GET requests... 我可以在Windows上迁移数据库,甚至可以播种数据库,但是Mongrel不会响应任何GET请求...

Does anybody have any idea on what could it be? 有人对它会有什么想法吗? thanks! 谢谢!

Switch from mongrel to "thin". 从杂种切换到“薄”。

Thin - A fast and simple web server 瘦-快速,简单的Web服务器

Problems installing Thin on windows 7 x86 (Stack Overflow) 在Windows 7 x86上安装Thin的问题 (堆栈溢出)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM