Here's an ultra simplistic example to show how it works:
config.ru (the Rack application):
run lambda { |env| [ 200, [ "Content-Type" => "text/plain" ], "Hello, world!" }
Warbler::Config.new do |config|
config.gems = ["sinatra"] # this is just an example here...
end
With that in place you can now runjruby -S warbleand have the .war file created for you in a matter of seconds.
And live is good again :)
No comments:
Post a Comment