我跑了:
rails g bootstrap:install
然后尝试运行rails服务器,并得到了这个奇怪的错误:
rails s
/Users/makersacademy/.rvm/gems/ruby-1.9.3-p392@global/gems/rubygems-bundler-1.1.1/lib/rubygems-bundler/noexec.rb:33:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
from /Users/makersacademy/.rvm/gems/ruby-1.9.3-p392@global/gems/rubygems-bundler-1.1.1/lib/rubygems-bundler/noexec.rb:33:in `<module:Noexec>'
from /Users/makersacademy/.rvm/gems/ruby-1.9.3-p392@global/gems/rubygems-bundler-1.1.1/lib/rubygems-bundler/noexec.rb:32:in `<top (required)>'
from /Users/makersacademy/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
有人可以帮忙吗?我不知道为了让rails服务器正常工作我需要做什么......谢谢!
答案 0 :(得分:10)
真的很傻。在这里回答:
http://shriikant.blogspot.co.uk/2010/04/shell-init-error-retrieving-current.html
你只需要做cd然后再回来它似乎解决了自己......不知道为什么......