1
0
Fork 0
selfhostblocks/docs/tutorials/deployprod.md
2023-04-04 00:04:23 -07:00

467 B

Deploy to prod

Please read the deploy to staging first as all commands are very similar. I only show a summary of the commands with staging variables replaced by prod ones.

export NIXOPS_DEPLOYMENT=prod
export DISNIXOS_USE_NIXOPS=1

nixops create ./network-prod.nix -d prod

nixops deploy --option extra-builtins-file $(pwd)/extra-builtins.nix
nixops reboot

disnixos-env -s services.nix -n network-prod.nix -d distribution.nix