sud*_*shu 5 heroku i18n-gem ruby-on-rails-4
在将Rails4代码推送到heroku时,我收到以下错误,这已经在过去2天内开始发生,否则会顺利进行
Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
couldn't find file '/tmp/build_b6402ff8-bda2-4bc5-95dc-2efe7a9044bc/tmp/i18n-js.cache'
(in /tmp/build_b6402ff8-bda2-4bc5-95dc-2efe7a9044bc/vendor/bundle/ruby/2.0.0/gems/i18n-js-2.1.2/vendor/assets/javascripts/i18n/translations.js.erb)
/tmp/build_b6402ff8-bda2-4bc5-95dc-2efe7a9044bc/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/context.rb:87:in `resolve'
Run Code Online (Sandbox Code Playgroud)
这是我的production.rb的条目
config.assets.initialize_on_precompile = true
Run Code Online (Sandbox Code Playgroud)
我能够运行RAILS_ENV =生产佣金资产:本地预编译.虽然我没有将预编译资产推送到服务器.
我通过我的gem文件安装了I18n-js 2.1.2版本,它的Rails4服务器为我运行.
急需帮助.
小智 6
提高资产版本似乎有效.在application.rb中更改以下行:
config.assets.version = '1.0'
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1876 次 |
最近记录: |