299
Old timers know (sh.itjust.works)
submitted 1 week ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 8 points 1 week ago* (last edited 1 week ago)

It depends. I've done it a few different ways:

  • YOLO: especially with thugs like PHP you only affect one page at a time and with low traffic the odds of a problem is small
  • Maintenance page: temporarily show a page. Some servers like IIS have this built in. Otherwise it's a simple update to httpd conf
  • In a cluster environment, just take the node you're updating out of rotation, and only update one node at a time.
  • Copy and switch like you suggested. Can be combined with any of the above and is a smart move if upload is slow or can be interrupted, or it's cumbersome to restore the old files

Edit: spelling

this post was submitted on 22 Jun 2024
299 points (97.8% liked)

Programmer Humor

31202 readers
1923 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS