【发布时间】:2013-12-13 20:40:27
【问题描述】:
这是我在 Heroku 上的应用程序:http://mighty-brushlands-6367.herokuapp.com/,它应该是这样的,就像在本地一样:
好吧,我做了一些谷歌搜索。我检查了这个解决方案:JQuery events are not working on heroku in production but work in development 和其他人。
我继续运行heroku run rake assets:precompile,但仍然无法在 Heroku 上启动效果。这就是我的application.js 的样子:
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
//= require bootstrap
//= require textEffect
我需要一些指导。我是一个渴望知识的新手。
【问题讨论】:
标签: javascript jquery ruby-on-rails heroku