No such file or directory - bin/spring
Closed this issue · 4 comments
Zhomart commented
I just created Rails 4.2.1 project, added gem 'storytime'
to Gemfile. After $ bundle install
I did $ bundle binstub storytime
and then $ storytime install
and got error:
$ storytime install
/Users/zhomart/.rvm/gems/ruby-2.2.1/gems/storytime-2.0.0/lib/storytime/cli/install.rb:60:in ``': No such file or directory - bin/spring (Errno::ENOENT)
from /Users/zhomart/.rvm/gems/ruby-2.2.1/gems/storytime-2.0.0/lib/storytime/cli/install.rb:60:in `interactive'
Gemfile
doesn't contain gem spring. Is it necessary to add it?
eanlain commented
Yeah, there's two points in the installer where we try to stop spring, by running bin/spring stop
, but we should probably handle that differently....
Quick fix for the moment:
group :development do
gem 'spring'
end
eanlain commented
Spring, by default, is included in the Gemfile for any app generated using Rails 4.1+ and the rails new
command.
Zhomart commented
Thank you for the answer. It works.
Btw, spring
is not included in Gemfile by rails 4.2.1
. Just tested.
eanlain commented
Ah, good to know - thanks for checking.