Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8088419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:05:00+00:00 2026-06-05T19:05:00+00:00

When I do: rake assets:precompile RAILS_ENV=production I get for example the following files in

  • 0

When I do:
rake assets:precompile RAILS_ENV=production
I get for example the following files in my public/assets folder:

  • application-7af6c31514bcdd4cce3c96892af4487f.js
  • application-7af6c31514bcdd4cce3c96892af4487f.js.gz
  • application.js
  • application.js.gz

The last 2 are a problem because it causes the compiled version to get served in development and I don’t understand why they are being generated.

I have the following line in my production.rb:

config.assets.digest = true
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:05:02+00:00Added an answer on June 5, 2026 at 7:05 pm

    To stop the creation of the non-hashed filenames in public use:

    rake assets:precompile:primary RAILS_ENV=production
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When running: rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets Everything precompiles but not my /app/assets/images/* I even
Precompiling assests with RAILS_ENV=production rake assets:precompile gave error such as: rake aborted! undefined method
In my dev sandbox RAILS_ENV=production rake assets:precompile is taking over 4 minutes to complete.
I'm not sure why, but whenever I run rake assets:precompile , application.js doesn't get
app/assets/stylesheets/application.css *= require formtastic I get this error: rake assets:precompile /Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby /Users/Nerian/.rvm/gems/ruby-1.9.3-rc1@davinci/bin/rake assets:precompile:all RAILS_ENV=production
rake assets:precompile creates new file like application-be2b8c92856ffacee861d9e9c2935e3e, but there's old one named application-c730047bc2a5cf3a706aa3a9f998ab77.css. It
Setup error.sass is under app/assets/stylesheets I ran bundle exec rake assets:precompile error.css is in
The command rake assets:precompile works very slow for me. Especially on my Amazon EC2
When I run rake db:seed ,something are broken! I get the following error: ray@ray-virtual-machine:~/ticketee$
I am trying to precompile assets ( rake assets:precompile or bundle exec rake assets:precompile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.