Sinatra launches immediately after exiting rails-console:
$ rails c
Loading development environment (Rails 3.1.11)
[1] pry(main)> exit
[2014-02-06 14:01:50] INFO WEBrick 1.3.1
[2014-02-06 14:01:50] INFO ruby 1.9.3 (2014-01-09) [java]
== Sinatra/1.3.3 has taken the stage on 4567 for development with backup from WEBrick
[2014-02-06 14:01:50] INFO WEBrick::HTTPServer#start: pid=4516 port=4567
The problem occurs when irb is used as the rails-console repl as well.
The problem does not occur when rails exits, only when rails console exits.
The problem occurs using jruby-1.7.10 but not jruby-1.6.7. The problem was originally noticed after upgrading.
Sinatra is available elsewhere in my stack (so it starting is not completely out of left field) but why does it start when rails-console exits.
A temporary fix to this is the following steps:
- remove
gem 'sinatra'
from theGemfile
- run
$ bundle install
- add
gem 'sinatra'
back to theGemfile
- run
$ bundle install
Unfortunately, after a few modifications to the to Gemfile and another bundle install
the issue persists. I imagine this a bug in bundler, but of all things to happen why would a sintra server launch?