On pushing the Rails4 code to heroku I get the following error, this has started happening in last 2 days, which otherwise a smooth process
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'
Here is entry from my production.rb
config.assets.initialize_on_precompile = true
I am able to run RAILS_ENV=production rake assets:precompile
locally. Though I am not pushing the precompiled assets to the server.
I am get I18n-js 2.1.2 version installed through my gem files, its Rails4 server running for me.
Bumping up the asset version seems to work. Change the following line in application.rb:
config.assets.version = '1.0'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With