欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2024-03-09 17:43:53
...
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__)
相关标签: Ruby Rails