Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Limits of drip - rails console? rake test? #60
I am able to run my app using drip and works fine (much speedier, thanks). I have the rails startup bit in my dripmain.rb. rails server (3.2.12) works fine too.
But "rails console" just returns to the prompt, no error code nor message. Given its more interactive, I can imagine, things like that are not supported (I am using pry). Although, plain irb works fine - so maybe its a pry related issue.
Also when I run some integration tests, like below - I get the below error about loading the test_helper. Works fine when I disable drip - also works fine under spork, which I'd have thought would be using drip - but maybe it bypasses it somehow.
I am using jruby 1.7.3
Thanks in advance,
Part of the problem with these commands is the fact that Rails is very spawn-heavy. Most rails commands boot Rails to get app information, then relaunch the requested command with different command line arguments. I would imagine this is not working right with drip. Will investigate a bit myself.
I have created https://github.com/headius/boing as an answer to the Spring preloader. For the Rails commands in question, it avoids launching a subprocess (as Spring does) and starts them directly. It's only an early attempt at building a preload-aware launcher, but it works well for the commands I've tested.