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 8020267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:38:30+00:00 2026-06-04T21:38:30+00:00

In production (on Heroku), shouldn’t the assets be compiled on bootup one time, and

  • 0

In production (on Heroku), shouldn’t the assets be compiled on bootup one time, and then never compiled again?

/production.rb
config.serve_static_assets = false
config.assets.compress = true
config.assets.compile = false
config.assets.digest = true

When someone doesnt hit my application for a while things go idle, and it seems that the assets are re-compiled when that new, fresh request comes in???

Any idea what im doing wrong?

  • 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-04T21:38:33+00:00Added an answer on June 4, 2026 at 9:38 pm

    On Heroku, if your application is idle for an hour, the dynos will go into standby. That’s why when you revisit your application it takes a bit to load the first time. You mention “bootup” time – that’s exactly what’s happening once your dynos reboot, your instance does not continuously run once you push.

    When the dynos are coming back to life, your assets will need to precompile, since you have config.assets.compile set to false. This behavior really isn’t out of the ordinary.

    If you want to avoid that, you can set a cron job to curl your heroku instance every half hour.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

heroku run rake db:migrate works fine to alter the structure of the production database:
I have a problem that occurs only in a production environment, deployed at heroku.
Here is my case: For production I use Heroku. The question is what should
One of our production apps has been on Amazon RDS (MySql) for a few
Currently it seems Heroku is determined to pre-compile assets when I push my code
I want to use sqlite3 but pg for production on heroku. However, I don't
I have a Play! framework Heroku project that has three deployments. One for running
I just pushed an app to a production Heroku environment. Basically there is a
I have the following snippet that works fine on Heroku (production) for enforcing SSL:
I'm trying to copy my production database on Heroku across to my staging server.

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.