Thanks - that worked :-) - DaveE
Try to split it up in two files:
app.rb: The app
config.ru:
require 'app'
run Nuts
I don't think rackup-files can have __END__.
// Magnus Holm
On Thu, Oct 13, 2011 at 17:48, Dave Everitt <dever...@innotts.co.uk>
wrote:
I might be missing something stupid.. but Passenger doesn't like
__END__
http://pastie.org/2689517
Same code (omitting requires) fine in Camping server, not with
Passenger/Rack:
compile error config.ru:33: syntax error, unexpected $end,
expecting ')'
__END__ ^
Works fine under Passenger without __END__ - probably a Rack issue,
but
looking for clues here...
Ruby 1.8.6
Rack 1.3.4
Passenger 3.0.9
Apache 2.2.17
Camping 2.1.467
DaveE
BTW love @@/styles.css - saved 6 lines of code :-)
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list