这个应用程序的一切正常,现在我今天尝试推送到Heroku时得到了这个:
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 git@heroku.com:cold-night-9597.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:server-name-1234.git'
很奇怪 - 在任何地方找不到任何关于此错误的内容 - 并且它在本地运行正常......
答案 0 :(得分:5)
试试这个:
require 'rubygems'
require 'json'
答案 1 :(得分:3)
请参阅 this answer for details 。
在运行通过bundle
管理的项目时遇到了同样的错误:
<option value='0'>Show All</option> // Set value as 0 for "Show All" option
var table = $("#table").DataTable();
$("#filter").change(function(){
var filterValue = $(this).val();
if ( filterValue == '0' ){ // Check for show all option
table.search(filterValue).draw();
} else {
table.search(filterValue).draw();
}
});
bundle exec jekyll build
中缺少以下行:
Gemfile