문제

IIS 7에서 실행중인 IronRuby로 구축 된 Rails App을 얻으려고 노력하고 있습니다. Ironruby 사이트에 주어진 모든 튜토리얼을 따라갔습니다. 그러나 나는 그것을 일하게하는 것 같습니다.앱은 WebBrick에서 호스팅을 잘 실행하지만 IIS는 올바르게 호스트하는 것 같습니다.내가 얻은 페이지는 다음과 같습니다.

Error: exit

C:/repositories/RampUp/ruby/RampUp/config/boot.rb:66:in `exit': exit (SystemExit)
    from C:/repositories/RampUp/ruby/RampUp/config/boot.rb:66:in `load_rails_gem'
    from C:/repositories/RampUp/ruby/RampUp/config/boot.rb:54:in `load_initializer'
    from C:/repositories/RampUp/ruby/RampUp/config/boot.rb:38:in `run'
    from C:/repositories/RampUp/ruby/RampUp/config/boot.rb:11:in `boot!'
    from C:/repositories/RampUp/ruby/RampUp/config/boot.rb:110
    from C:/repositories/RampUp/ruby/RampUp/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from C:/repositories/RampUp/ruby/RampUp/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from C:/repositories/RampUp/ruby/RampUp/config/environment.rb:7
    from C:/repositories/RampUp/ruby/RampUp/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from C:/repositories/RampUp/ruby/RampUp/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from (eval):1
    from C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
    from C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
    from (eval):0
    from IronRuby.Rack:0:in `Rackup'
    from IronRuby.Rack:0:in `.ctor'
    from IronRuby.Rack:0:in `GetHandler'
    from System.Web:0:in `System.Web.HttpApplication.IExecutionStep.Execute'
    from System.Web:0:in `ExecuteStep'
    from System.Web:0:in `ResumeSteps'
    from System.Web:0:in `BeginProcessRequestNotification'
    from System.Web:0:in `ProcessRequestNotificationPrivate'
    from System.Web:0:in `ProcessRequestNotificationHelper'
    from System.Web:0:in `ProcessRequestNotification'
    from System.Web:0:in `MgdIndicateCompletion'
    from System.Web:0:in `ProcessRequestNotificationHelper'
    from System.Web:0:in `ProcessRequestNotification'


Search paths

C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/activerecord-2.3.8/bin
C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/activerecord-2.3.8/lib
C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/activesupport-2.3.8/bin
C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib
C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/rake-0.8.7/bin
C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/rake-0.8.7/lib
C:/repositories/RampUp/ruby/RampUp
C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/rack-1.2.1/bin
C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8/gems/rack-1.2.1/lib
C:/repositories/RampUp/ruby/RampUp/IronRuby/lib/IronRuby/
C:/repositories/RampUp/ruby/RampUp/IronRuby/lib/ruby/site_ruby/1.8/
C:/repositories/RampUp/ruby/RampUp/IronRuby/lib/ruby/1.8/
.

Gem paths

C:/repositories/RampUp/ruby/RampUp/IronRuby/Lib/ironruby/gems/1.8
C:/repositories/RampUp/ruby/RampUp/IronRuby/lib/ironruby/gems/1.8
.

여기 내 web.config

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting" requirePermission="false"/>
  </configSections>
  <system.webServer>
    <handlers>
      <clear/>
      <add name="IronRuby" path="*" verb="*" type="IronRuby.Rack.HttpHandlerFactory, IronRuby.Rack" resourceType="Unspecified" requireAccess="Read" preCondition="integratedMode"/>
    </handlers>
  </system.webServer>
  <system.web>
    <!-- make this true if you want to debug any of the DLR code, IronRuby.Rack, or your own managed code -->
    <compilation debug="false"/>
  </system.web>
  <microsoft.scripting debugMode="true">
    <languages>
      <language names="IronRuby;Ruby;rb" extensions=".rb" displayName="IronRuby 1.0" type="IronRuby.Runtime.RubyContext, IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </languages>
    <options>
      <set language='Ruby' option="LibraryPaths" value=";..\IronRuby\lib\IronRuby\;..\IronRuby\lib\ruby\site_ruby\1.8\;..\IronRuby\lib\ruby\1.8\"/>
    </options>
  </microsoft.scripting>
  <appSettings>
    <add key="AppRoot" value="..\."/>
    <add key="Log" value="ironrack.log"/>
    <!-- <add key="GemPath" value="..\..\..\..\External.LCA_RESTRICTED\Languages\Ruby\ruby-1.8.6p368\lib\ruby\gems\1.8"/> -->
    <add key="GemPath" value="..\IronRuby\Lib\ironruby\gems\1.8"/>
    <add key="RackEnv" value="development"/>
  </appSettings>
</configuration>
.

및 my config.ru 파일

# RAILS_ROOT/config.ru
require "config/environment"

ENV['RAILS_ENV'] = 'development'

use Rails::Rack::LogTailer
use Rails::Rack::Static
run ActionController::Dispatcher.new
.

나는 내가 무엇을 잘못하고 있는지 확신하지 못한다.어떤 제안?

도움이 되었습니까?

해결책

마침내 그것을 얻었습니다.Rails 2.3.8 및 Rack 1.1을 제거하고 Rails 2.3.5 및 랙 1.0.1을 설치해야했습니다. Runruby Rung (1.0)의 버전은 최신 버전의 레일에 문제가 있습니다.어쨌든 그것은 내가 그랬던 후에 일했습니다.

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