rake rails:freeze:gems 带来的问题!

一直纠结于netbean 启动不了 webrick的问题,只能手动cmd,去ruby server才行。网上说是什么bug什么的云云,其实是各种坑爹。

有时候问题还真得搁在那里,没准哪天就解决了,今天,对就是今天。原来是用了rake rails:freeze:gems造成的。还有就是如果不用 rails:unfreeze逆操作的话,一定记得手动删除包括rails这个目录,不然会报错:

PS G:\rubywork\netbeans_work\Josh\script> ruby server
./../config/boot.rb:45:in `require': no such file to load -- ./../config/../vendor/rails/railties/lib/initializer (LoadE
rror)
from ./../config/boot.rb:45:in `load_initializer'
from ./../config/boot.rb:38:in `run'
from ./../config/boot.rb:11:in `boot!'
from ./../config/boot.rb:109
from server:2:in `require'

 

你可能感兴趣的:(Rails)