meteor-up icon indicating copy to clipboard operation
meteor-up copied to clipboard

Maintenance mode while deploying updates?

Open mad-coder-365 opened this issue 3 years ago • 1 comments

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.

mad-coder-365 avatar Apr 07 '22 12:04 mad-coder-365

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,

soolidtech avatar Apr 12 '22 22:04 soolidtech