zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

Maintenance mode while deploying updates? #1309

Open mad-coder-365 opened 2 years ago

mad-coder-365 commented 2 years ago

Sorry, if this is already mentioned in the docs. I must have missed it.

Every time I deploy updates using mup deploy, my website goes down. For new users website doesn't exist while the app is being deployed.

Can we show some static page saying "Website under maintenance...will be back soon" while mup deploy is running? If possible, please guide me. Thanks.

soolidtech commented 2 years ago

Hi !

Looks like this feature is on roadmap : https://github.com/zodern/meteor-up/blob/master/ROADMAP.md#zero-downtime-deploys

And in documentation : "Due to planned reasons or unexpected problems, the reverse proxy or a server might be stopped or go down. To prevent this from causing downtime, you want other servers to handle serving requests.

This is not solved in mup, and we welcome ideas or pull requests to improve it."

But you can have a look at stopAppDuringPrepareBundle though, it looks like it can shorten downtime :

      // (optional, default is true) If true, the app is stopped during
      // Prepare Bundle to help prevent running out of memory when building
      // the docker image. Set to false to reduce downtime if your server has
      // enough memory or swap.
      stopAppDuringPrepareBundle: true,