I have a nanoc site (like all static pages) that I would like to check with a unicorn. The idea behind this is to place this site on a hero. Structure is a rack application. I added the config.ru file, for example:
require 'rubygems'
require 'rack'
require 'rack-rewrite'
require 'rack/contrib'
use Rack::Rewrite do
rewrite '/','/output/index.html'
end
use Rack::Static, :urls => ['/'], :root => "output"
(all my static resources are in the output directory)
When I run the unicorn, I received the following error message:
NoMethodError at /output/index.html
undefined method `to_i' for #<Rack::Static:0x10165ee18>
I do not quite understand what is missing here :(
Any idea?
Thank you and welcome
Luke
source
share