-
-
Save eddies/376473 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# pre-requesites : rvm 1.2.6 (http://rvm.beginrescueend.com/) | |
# | |
cd tmp/ | |
mkdir asier | |
cd asier/ | |
git://github.com/tosch/ruote-kit.git | |
git clone git://github.com/geekq/jetty-rackup.git | |
# see http://github.com/geekq/jetty-rackup | |
cd ruote-kit | |
rvm use jruby-1.4.0 | |
rvm gemset create asier | |
rvm gemset use asier | |
vi .rvmrc | |
# making sure it contains "rvm use jruby-1.4.0@asier" | |
gem update --system | |
# had to upgrade my jruby rubygems to 1.3.6 | |
vi ~/.rvm/rubies/jruby-1.4.0/bin/gem | |
# | |
# had to make sure the bang is | |
# | |
# #!/usr/bin/env jruby | |
# | |
# thanks to http://www.ruby-forum.com/topic/207430 | |
vi Gemfile | |
# | |
# replace 'json' with 'json_pure' | |
gem install jruby-openssl | |
gem install rack bundler | |
bundle install | |
vi config.ru | |
# | |
# RuoteKit.configure do |config| | |
# | |
# # storage mode | |
# #config.mode = :transient | |
# | |
# require 'ruote/storage/fs_storage' | |
# config.set_storage(Ruote::FsStorage, 'work', 'cloche_nolock' => true) | |
# | |
# # run a worker | |
# config.run_worker = true | |
# | |
# config.register do | |
# # With this rackup I bundle as catchall, making it easy to experiment | |
# catchall | |
# end | |
# end | |
../jetty-rackup/jetty-rackup | |
# going to | |
# | |
# http://127.0.0.1:9292/ | |
# | |
# will result in a 'resource not found exception' | |
# have to go to | |
# | |
# http://127.0.0.1:9292/_ruote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment