首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

rails2.3.3升级到3.0.7,require': no such file to load - script/./config/boot

2012-12-24 
rails2.3.3升级到3.0.7,`require: no such file to load -- script/../config/bootruby 1.9.2rails 2.3.3

rails2.3.3升级到3.0.7,`require': no such file to load -- script/../config/boot
ruby 1.9.2
rails 2.3.3 -> 3.0.7

ruby script/server 启动应用
出现错误:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- script/../config/boot (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/server:2:in `<main>'

解决方法:
编辑script/server文件
require File.dirname(__FILE__) + '/../config/boot'
改成
require File.expand_path('../../config/boot', __FILE__)

热点排行