开发者

Running Spork for rails on linux using Virtual Box - Port in use error

On Ubuntu 11.0.4 and Fedora: I'm getting a "Address already in use - bind(2) (Errno::EADDRINUSE)" error while using spork.

If I load spork using a different port, then rspec no longer detects a drb server - guard doesn't work with it either. I've tried installing a different OS, as well as using VMWare, and I get the same error.

开发者_JAVA技巧How do I proceed?

Thanks!


When using a non-default port for the DRb server you can tell RSpec to use that alternate port by adding --drb-port [PORT] to your rspec call.

spork -p 5555
rspec spec --drb --drb-port 5555

Of course you can put all the rspec options into your .rspec file, then just remember to run that port when you fire up spork.


maybe there is another spork working. look up the procedure list

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜