mirror of
https://github.com/archtechx/nix.git
synced 2025-12-12 11:24:04 +00:00
Add note about rebuilding
This commit is contained in:
parent
b091a51ec0
commit
f60cb87572
1 changed files with 8 additions and 0 deletions
|
|
@ -380,3 +380,11 @@ Then clean garbage:
|
||||||
```sh
|
```sh
|
||||||
sudo nix-collect-garbage -d
|
sudo nix-collect-garbage -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Rebuilding
|
||||||
|
|
||||||
|
From personal testing, running `nixos-rebuild switch` doesn't necessarily cause any downtime for users
|
||||||
|
if your website is behind Cloudflare. NixOS first builds everything it needs and only then, usually pretty
|
||||||
|
quickly, restarts (and adds, removes, etc) services as needed. This means your nginx **might** be down for
|
||||||
|
a very brief period, but if Cloudflare cannot connect to your server it will retry a couple of times. So at
|
||||||
|
most some requests will be very slightly delayed, but users should not see any errors on most rebuilds.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue