2013-04-02 45 views
1

一切在此应用程序工作正常,现在今天我得到这个,当我尝试推到Heroku的:没有这样的文件来加载 - JSON(LoadError)

Counting objects: 28, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (22/22), done. 
Writing objects: 100% (22/22), 2.20 KiB, done. 
Total 22 (delta 14), reused 0 (delta 0) 
/app/slug-compiler/lib/slug.rb:12:in `require': no such file to load -- json (LoadError) 
    from /app/slug-compiler/lib/slug.rb:12 
    from /app/slug-compiler/bin/slugc:14:in `require' 
    from /app/slug-compiler/bin/slugc:14 
To [email protected]:cold-night-9597.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:server-name-1234.git' 

很奇怪 - 找不到这个错误在任何地方任何事情 - 和它的运行良好,本地...

回答

5

试试这个:

require 'rubygems' 
require 'json' 
+0

感谢安东尼 - 我已经在那里 - 因为它原来这是一个Heroku问题 - 它在几个小时后开始工作。 .. – thinkfuture

相关问题