Rails 4资产不在生产环境中编译

时间:2015-11-04 13:29:14

标签: ruby ruby-on-rails-4 highcharts asset-pipeline

我的应用在dev环境中运行。我正在使用JQCloud。 它在开发模式下工作正常,但是当我运行以下命令时

RAILS_ENV=production rake assets:precompile

所有资产都是预编译的,但在生产模式下运行我的服务器后,我收到了以下错误。

jQCloud is not a function


application.css.scss

 *= require_tree .
 *= require_self
 *= require font-awesome
 */


appication.js

//= require jquery
//= require jquery_ujs
//= require bootstrap-sprockets
//= require_tree .

dashing widegts index.js

//= require_tree .
//= require highcharts/highstock
//= require highcharts/highcharts-more
//= require highcharts/modules/exporting
//= require jquery-ui
//= require jqcloud

面对错误跟踪错误

Uncaught TypeError: $(...).jQCloud is not a function 
Uncaught ReferenceError: Highcharts is not defined

0 个答案:

没有答案