18 Oct '13, 3pm

standalone sinatra jar with jruby #ruby #ror #RubyOnRails

For Fauna , we needed to migrate the website (a Sinatra app) from Heroku to our own servers in AWS us-west-2 . I wanted to get off MRI and bundle it up as a JAR as part of this process. dad, why We already deploy the core database as a monolithic JAR, so it made sense to deploy the website as a monolithic JAR as well. This conforms to our constraint-driven development methodology. We also wanted to avoid having to set up a J2EE webserver to host a single WAR, but rather stick to a self-contained JVM per app. It turned out to be within the realm of straightforward. the jar Building a JAR from a Rack app requires three things: Put your code into /lib so Warbler adds it to the $LOAD_PATH . Rename your rackup so Warbler can’t find it and builds a JAR instead of a WAR. I put mine at /config/web.ru . Copy the startup script from your webserver into /bin . (I wanted to use Thick ...

Full article: http://blog.evanweaver.com/2013/08/07/standalone-sinatra-...

Tweets

How to stub external services in tests

robots.thoughtbot.com 19 Oct '13, 2pm

$ rspec spec/features/external_request_spec.rb F Failures: 1) External request queries FactoryGirl contributors on Github ...

Just now reading about the new Jruby release an...

jruby.org 22 Oct '13, 9pm

The JRuby community is pleased to announce the release of JRuby 1.7.6 Homepage: http://www.jruby.org/ Download: http://www...

JRuby 1.7.6リリースかあ。

jruby.org 23 Oct '13, 7am

The JRuby community is pleased to announce the release of JRuby 1.7.6 Homepage: http://www.jruby.org/ Download: http://www...

20 Rubyists using Sinatra

rubylearning.com 21 Oct '13, 1am

I’ve just founded a company called “Rock & Code ” in Amsterdam, The Netherlands that offers solutions developed on Sinatra...