Sinatra Template will not run

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 1
Joined: 19 Jul 2012, 18:42

Sinatra Template will not run

19 Jul 2012, 18:47

1. I installed the Ruby Hosting Package and Sinatra on Windows Server 2008R2 with IIS using Helicon Zoo.
2. I downloaded and imported the Sinatra template from Helicon Zoo Templates using web deploy on IIS

Now I get this error when navigating to the website:

[tid-8586600] paths need to start with / (ArgumentError)
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:30:in `block in remap'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:22:in `each'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:22:in `map'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:22:in `remap'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/urlmap.rb:18:in `initialize'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:142:in `new'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:142:in `generate_map'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:128:in `to_app'
C:/Zoo/Workers/ruby/lib/app.rb:45:in `build_app'
C:/Zoo/Workers/ruby/lib/app.rb:16:in `initialize'
C:/Zoo/Workers/ruby/lib/worker.rb:4:in `new'
C:/Zoo/Workers/ruby/lib/worker.rb:4:in `initialize'
C:/Zoo/Workers/ruby/zoorack.rb:30:in `new'
C:/Zoo/Workers/ruby/zoorack.rb:30:in `<module:Zack>'
C:/Zoo/Workers/ruby/zoorack.rb:12:in `<main>'


I haven't changed any of the files in the template yet.

Any ideas?

Thank you in advance!

User avatar
Posts: 1
Joined: 19 Jul 2012, 21:37

Re: Sinatra Template will not run

19 Jul 2012, 21:45

Found a workaround for now. The problem seems to lie with how the Zack module is mapping url requests. The environmental variable APPL_VIRTUAL_PATH is being set with a '\' mistakenly. Edit app.rb (should be in \ZooExpress\Workers\ruby\lib\app.rb).

Goto line 41 and overide the value for virtual_path
Code: Select all
 virtual_path = '/'


Then just restart your server - worked for me!

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Sinatra Template will not run

23 Jul 2012, 07:24

Hello,

Thank you. This is a bug. We've fixed it and a new build will be released shortly with this fix.

Regards
Andrew

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Sinatra Template will not run

23 Jul 2012, 08:07

Please upgrade Helicon Zoo Module from the feed to the version 1.0.0.47 or higher. Just go to Zoo -> Modules and install it again.

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 2 guests