2013-04-02 60 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

相關問題