1
0
Fork 0
selfhostblocks/docs/tutorials/deployprod.md

18 lines
467 B
Markdown
Raw Normal View History

2023-03-18 05:07:37 +01:00
### Deploy to prod
Please read the [deploy to staging](/deploystaging.md) first as all
commands are very similar. I only show a summary of the commands with
staging variables replaced by prod ones.
```bash
export NIXOPS_DEPLOYMENT=prod
export DISNIXOS_USE_NIXOPS=1
nixops create ./network-prod.nix -d prod
2023-04-04 09:04:04 +02:00
nixops deploy --option extra-builtins-file $(pwd)/extra-builtins.nix
2023-03-18 05:07:37 +01:00
nixops reboot
disnixos-env -s services.nix -n network-prod.nix -d distribution.nix
```