Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.
mrship edited this page Sep 13, 2010 · 23 revisions

Welcome to the culerity wiki!

Known Problems / Troubleshooting

I installed jruby via rvm and culerity doesn’t work

try this: http://gist.github.com/268216

trying to activate an “onmouseover” event using the #fire_event instance I get a “NoMethodErrror”

you are probably using the (old) rubyforge version of celerity. try the github version instead. (thanks to @jamescallmebrent)

The Java process isn’t shut down which results in processes piling up (Ubuntu)

this has been reported by @josevalim and i haven’t been able to reproduce this. here’s his solution: add an exit(0) call to the on_exit block in common_celerity.rb

 at_exit do
    $browser.exit
    $server.close
    exit(0)
  end

I’ve also had this happen to me under 10.5.7 — @Caius

I want culerity to run faster!

jRuby v1.5 (and, I think, v1.4) has an option called nailgun that spawns a JVM that all other instances of jruby then connect to. This saves the boot time for a JVM each time you run a jruby command. This can make culerity run significantly faster. To setup:

  • Run jruby --ng-server in a separate shell
  • Make sure the jruby call that culerity uses passes the --ng flag. Perhaps the easiest way to do this is to set ENV["JRUBY_OPTS"]="--ng"
  • You’re done! First time through you won’t notice any difference, but subsequent runs should be much faster.
  • NOTE: Passing the --ng option without first setting up the nailgun server will cause this error:
     connect: Connection refused 

related tools

  • modified timecop by @liangzan: freeze time even across processes, i.e. you can call timecop to change the time in the rails webserver process
Clone this wiki locally