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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:06:46+00:00 2026-06-10T10:06:46+00:00

Our team has been very interested in continuous deployment recently, but we’ve run into

  • 0

Our team has been very interested in continuous deployment recently, but we’ve run into a little bit of a roadblock in regards to how to actually get code deployed on Heroku – it seems inevitable that there needs to be some amount of downtime to do a code push to Heroku.

In a traditional environment, code deployment would probably look something like this:

  1. Push the code up to a staging directory somewhere (old code is still live)
  2. Run migrations against the database (more often than not, it’s safer to run migrations beforehand, and the few that will break the code can be guarded against)
  3. Take half (or some percentage of servers) out of the load balancer.
  4. Deploy code to those servers.
  5. If possible, run some sort of automated smoke test / exercise the servers so they’re “hot”
  6. Switch which servers are in and out of the load balancer
  7. Rinse and repeat.

With Heroku, I have very little control over two critical steps:

  • I can’t run database migrations first. One way I’ve considered to get around this is to keep database migrations branched seperately, and push those to heroku first – which while painful, would solve the problem – but only exacerbate…
  • Dyno spin-up time can take a fairly long time – obviously, this is more the fault of Rails than of Heroku, but the key problem is that I can’t do something like the load balancer shuffle above to ensure that my app is ready and loaded before a newly deployed server is put back into the load balancer. Instead, I pretty much have no choice but to give users a 10-15 second load screen and hope for the best (and do that TWICE if I use the database deployment strategy from above)

We do use the maintenance screen currently, but it’s not going to be a scalable solution if we move to full continous deployment (we’d probably have about 10-20 deployments a day, and 10-20 * 30 seconds of maintenance screen starts to add up)

Has anyone run into similar issues? How did you address them? Any great case studies / success stories for true continuous deployment on heroku?

  • 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-10T10:06:47+00:00Added an answer on June 10, 2026 at 10:06 am

    Regarding the dynos spin-up time, Heroku has a beta feature to address just that:

    https://devcenter.heroku.com/articles/labs-preboot/

    It basically boots your new dynos first, waits a while, switched traffic and only then kills the old ones. My app saw a marked improvement in performance during deploys. You can read it here:

    http://ylan.segal-family.com/blog/2012/08/27/deploy-to-heroku-with-near-zero-downtime/

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

Sidebar

Related Questions

Our team has recently been working on a logic and data layer for our
Our team has recently been considering pushing out a minor registry fix to users
Our team recently upgraded to TeamCity 4.5.4 but we're having trouble with TeamCity running
I've started looking into using Knockout for my team's use; I've been very pleased
My team has been asked to offer AMF output from our web service to
Our team has been asked to write a Web interface to an existing SQL
Our team has been using Microsoft's AJAX Toolkit since the days of Atlas. In
My team has been working, for the most part, on our own projects. I
The other person on my dev team has been deploying our Django app to
Our team has been experiencing a recurring problem with velocity templates. Upon rendering, some

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.