【发布时间】:2016-05-25 15:49:28
【问题描述】:
浏览进程资源管理器时,导航到 127.0.0.1/rails 会生成 ruby.exe,它们很快就会消失并且页面永远不会加载。让我相信我的配置文件有问题。
我和Running Ruby on Rails on IIS8 with HttpPlatformHandler 一起跟着我撞墙了。
我已经验证 Rails 可以在本地 WEBrick 服务器下运行应用程序。但是,我无法弄清楚为什么应用程序不会在 IIS8 下启动。我希望有人可以帮助我验证一些事情或指出我正确的方向。在博客中,Scott 运行的是 Windows 8。因此,使用 Windows Server 2012 可能会遗漏一些差异。
Windows 功能
在博客中,Scott 只是打开了 Internet Information Services。在服务器上,它似乎涉及更多。我已经安装了:
- 应用服务器:
- .NET Framework 4.5
- Web 服务器 (IIS) 支持
- Web 服务器 (IIS)
- 网络服务器
- 常见的 HTTP 功能
- 应用开发
- 网络服务器
也许有人可以验证我在该部分中没有遗漏任何内容。如有必要,我可以进一步详细说明。
web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" requireAccess="Script" />
</handlers>
<httpPlatform stdoutLogEnabled="true" stdoutLogFile="rails.log" startupTimeLimit="20" processPath="c:\Ruby22-x64\bin\ruby.exe"
arguments=""C:\Ruby22-x64\bin\rails" server -p %HTTP_PLATFORM_PORT% -b 127.0.0.1">
</httpPlatform>
</system.webServer>
</configuration>
感谢您的观看!任何输入将不胜感激!我意识到在 Windows 上提供 Rails 应用程序并不理想。但是,我没有任何其他选择......
【问题讨论】:
标签: ruby-on-rails iis-8 windows-server-2012-r2