我正在使用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'
我该怎么办?
答案 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