Questions tagged [precompile-assets]

Use rake assets:precompile to pre-compile the assets before pushing code to production. This command pre-compiles assets and places them under the public/assets directory in our Rails application.

Use rake assets:precompile to pre-compile the assets before pushing code to production. This command pre-compiles assets and places them under the public/assets directory in the Rails application.

7 questions
12
votes
4 answers

Ruby on Rails: heroku run rake assets:precompile

Please help me understand what heroku run rake assets:precompile exactly does. Ever since I began working on ruby on rails, I would always run these three commands before I push to github and heroku: bundle exec rake…
user3104471
  • 305
  • 1
  • 2
  • 11
4
votes
1 answer

rake aborted! JSON::GeneratorError: source sequence is illegal/malformed utf-8 after rake assets:precompile

I finished building a website and want to deploy it to Digital Ocean VPN. Installed Capistrano and Passenger. During initial deployment I was receiving an error that apparently had to do with precompiling assets, so I tried "rake assets:precompile…
f10a
  • 51
  • 1
  • 7
4
votes
3 answers

Rails assets not compiling when pushing to production

I am trying to deploy my rails app to production and I'm trying to precompile all of the assets: My assets.rb file: Rails.application.config.assets.precompile += %w( *.css.sass ) Rails.application.config.assets.precompile += %w( *.css.scss…
HappyCry
  • 873
  • 2
  • 9
  • 16
3
votes
1 answer

Rails 4 fingerprinting causing 404 for bootstrap assets in production environment

I'm using the bootstrap-sass gem within my Rails 4 application and I have used Glpyphicons font that comes packed with bootstrap for icons across my application. In development, these icons show up fine. However, in any non-development environment,…
1
vote
0 answers

Precompiling assets failed when deploying to heroku

I am having an issue trying to deploy a rails application. I don't know why I receive an error "Precompiling assets failed." Maybe there are problems with gems version. Could you help. I will reproduce the logs here: Removing zeitwerk (2.4.2) …
1
vote
1 answer

Unable to precompile assets for heroku

How can I fix this error when trying to precompile assets? command: bundle exec rake assets:precompile Error: rake aborted! LoadError: cannot load such file…
RPV
  • 397
  • 1
  • 5
  • 16
0
votes
1 answer

Precompiling assets with capistrano gives error during deployment

I am trying to deploy my rails app to a digital ocean server using the capistrano gem, and I'm getting the error : The deploy has failed with an error: #