More actions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
!Command | !Command | ||
!Description | !Description | ||
|- | |- | ||
|nixos-rebuild switch --build-host root@posixlycorrect.com --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps | |nixos-rebuild switch --build-host root@posixlycorrect.com --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps | ||
| | |Deploy server | ||
|- | |- | ||
|sudo -u postgres psql | |sudo -u postgres psql | ||
| | | | ||
|- | |- | ||
|sudo ss -tpn | |sudo ss -tpn | ||
|Check current connections | |Check current connections | ||
| | |- | ||
|nix flake lock --commit-lock-file --update-input homepage | |||
|Deploy homepage | |||
|} | |} |
Revision as of 06:50, 8 August 2024
This is a simple list of useful commands for use in the VPS. Some of the commands are self-explanatory and no description is needed.
Command | Description |
---|---|
nixos-rebuild switch --build-host root@posixlycorrect.com --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps | Deploy server |
sudo -u postgres psql | |
sudo ss -tpn | Check current connections |
nix flake lock --commit-lock-file --update-input homepage | Deploy homepage |