Sinatra Template will not run
4 posts
• Page 1 of 1
Sinatra Template will not run
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:
I haven't changed any of the files in the template yet.
Any ideas?
Thank you in advance!
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!
Re: Sinatra Template will not run
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
Then just restart your server - worked for me!
Goto line 41 and overide the value for virtual_path
- Code: Select all
virtual_path = '/'
Then just restart your server - worked for me!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Sinatra Template will not run
Hello,
Thank you. This is a bug. We've fixed it and a new build will be released shortly with this fix.
Regards
Andrew
Thank you. This is a bug. We've fixed it and a new build will be released shortly with this fix.
Regards
Andrew
Re: Sinatra Template will not run
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.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests