[Ironruby-core] IronRuby + Sinatra isn't working for me
Jimmy.Schementi at microsoft.com
Mon Jul 13 14:08:03 EDT 2009
Yep, that will bypass the need for Sinatra to use stack traces to find
the entry point script, so using a config.ru will work unpatched.
Sent from my phone
On Jul 13, 2009, at 10:22 AM, "Mark Wilkins" <wilkins.mark at gmail.com>
> On Mon, Jul 13, 2009 at 12:52 PM, Mark
> Wilkins<wilkins.mark at gmail.com> wrote:
>> and from the command line, running:
>> $ ir myapp.rb
>> rather than getting the expected, "==Sinatra has taken the
>> stage...", I get:
>> $ir -v myapp.rb
>> IronRuby 0.6.0.0 on .NET 188.8.131.52
> So I just tried this, and it seems to work.
> I created a config.ru file:
> require 'myapp'
> run Sinatra::Application
> and then started the app this way:
> $irackup config.ru (note: irackup, not rackup)
> [2009-07-13 13:05:42] INFO WEBrick 1.3.1
> [2009-07-13 13:05:42] INFO ruby 1.8.6 (2008-05-28) [i386-mswin32]
> [2009-07-13 13:05:42] INFO WEBrick::HTTPServer#start: pid=2964
> So, I'm happy with that.
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
More information about the Ironruby-core