Rake资产:Heroku Error上的预编译

时间:2013-07-25 08:27:11

标签: ruby-on-rails heroku asset-pipeline precompile

我正在使用Flat-UI-Pro,flatuipro.js文件看起来像这样

//= require jquery.ui.touch-punch.min
//= require bootstrap-select
//= require bootstrap-switch
//= require flatui-checkbox
//= require flatui-radio
//= require jquery.tagsinput
//= require jquery.placeholder
//= require jquery.stacktable

在localhost上一切正常,但在部署到Heroku:

Preparing app for Rails asset pipeline
   Running: rake assets:precompile
   rake aborted!
   couldn't find file 'jquery.ui.touch-punch.min'

我该怎么办?

1 个答案:

答案 0 :(得分:-1)

运行

RAILS_ENV=production bundle exec rake assets:precompile
git add public/assets/
git commit -am "flatui assets to deploy"
git push origin master