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

  • SEARCH
  • Home
  • 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 9065801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:35:53+00:00 2026-06-16T16:35:53+00:00

I reviewed the many posts on this topic but can’t seem to find the

  • 0

I reviewed the many posts on this topic but can’t seem to find the combination to fix my problem. Sorry if this is a repeat.

Problem is I’m not sure the sequence of steps I took to get to this point.

I had a perfectly functioning Rails app in both development and production on Heroku. However, on Heroku deploy, I was getting an error during the asset precompilation. So, I changed settings so Heroku would assume ‘rake asset:precompile’ had been run locally before deploy. Got rid of the deploy error, no problem. Somewhat annoying that I had to now precompile locally and include the files in my Git repository, but I liked the no-error deploy.

Anyway, now in development, changes to CSS weren’t being reflected on-the-fly. I’d have to run ‘rake assets:precomplile’. That’s no good. Found a post that deleting public/assets would fix that, which it did.

Now Javascript/Coffeescript changes don’t get reflected on-the-fly.

Sorry for the longwinded description.

Ideally, I’d get to a world where changes are reflected on-the-fly in development, I don’t need to run ‘rake assets:precomplile’ before Heroku deploy, and I don’t get an error during precompile on Heroku.

Less ideally, I’d just get back to my initial behavior (where Heroku complained on deploy, but everything still worked fine).

  • 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-16T16:35:55+00:00Added an answer on June 16, 2026 at 4:35 pm

    If you want to precompile the assets on the fly use (for example config/production.erb)

    config.assets.compile = true
    config.assets.precompile << '*.js'
    

    Then look in config/application.rb there you can choose if you want to precompile before deploying to production

    if defined?(Bundler)
      # If you precompile assets before deploying to production, use this line
      Bundler.require(*Rails.groups(:assets => %w(development test)))
      # If you want your assets lazily compiled in production, use this line
      # Bundler.require(:default, :assets, Rails.env)
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I reviewed similar questions but could not find an answer to my specific quandry.
I've reviewed all the similar questions here, but I can't for the life of
I have reviewed a lot of information about these things, but can't understand what
I have reviewed quite a few posts on this site concerning this issue with
I've reviewed many other posts on here and have become pretty familiar with the
I reviewed many forums and examples, but none helped me. I need verify signature
I've reviewed all the documentation and Google results surrounding this and I think I
I know there's a ton of similar questions on here but I reviewed a
I have this data: Game 1: 7.0/10.0, Reviewed: 1000 times Game 2: 7.5/10.0, Reviewed:
I've written about this a few times, but am still having difficulty seeing how

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.