diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-02-15 21:27:00 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-02-15 21:27:00 +0100 |
| commit | ce0dbf6b249956700c6a1705bf4ad85a09d53e8c (patch) | |
| tree | d7c3236807cfbf75d7f3a355eb5df5a5e2cc4ad7 /README.md | |
| parent | 064a1d01c5c14f5ecc032fa9b8346a4a88b893f6 (diff) | |
Switch, cleanup, and status CLI commands. Persistent build state via
state.json. Post-deploy hooks on success and failure with
WITRYNA_BUILD_STATUS. Dependency diet (axum→tiny_http, clap→argh,
tracing→log). Drop built-in rate limiting. Nix flake with NixOS module.
Arch Linux PKGBUILD. Centralized version management.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 38 |
1 files changed, 31 insertions, 7 deletions
@@ -20,19 +20,39 @@ Pre-built packages are available at From a `.deb` package (Debian/Ubuntu): - curl -LO https://release.craftknight.com/witryna_0.1.0-1_amd64.deb - sudo dpkg -i witryna_0.1.0-1_amd64.deb + curl -LO https://release.craftknight.com/witryna_0.2.0-1_amd64.deb + sudo dpkg -i witryna_0.2.0-1_amd64.deb From an `.rpm` package (Fedora/RHEL): - curl -LO https://release.craftknight.com/witryna-0.1.0-1.x86_64.rpm - sudo rpm -i witryna-0.1.0-1.x86_64.rpm + curl -LO https://release.craftknight.com/witryna-0.2.0-1.x86_64.rpm + sudo rpm -i witryna-0.2.0-1.x86_64.rpm + +From PKGBUILD (Arch Linux): + + git clone https://git.craftknight.com/dawid/witryna.git + cd witryna/arch && makepkg -si + +With Nix (flake): + + nix profile install git+https://git.craftknight.com/dawid/witryna + +NixOS module: + + # In your flake.nix inputs: + witryna.url = "git+https://git.craftknight.com/dawid/witryna"; + + # In your NixOS configuration: + services.witryna = { + enable = true; + configFile = "/etc/witryna/witryna.toml"; + }; From a tarball (any Linux): - curl -LO https://release.craftknight.com/witryna-0.1.0-linux-amd64.tar.gz - tar xzf witryna-0.1.0-linux-amd64.tar.gz - sudo cp witryna-0.1.0-linux-amd64/witryna /usr/local/bin/ + curl -LO https://release.craftknight.com/witryna-0.2.0-linux-amd64.tar.gz + tar xzf witryna-0.2.0-linux-amd64.tar.gz + sudo cp witryna-0.2.0-linux-amd64/witryna /usr/local/bin/ From source: @@ -99,6 +119,8 @@ override from `/usr/share/doc/witryna/examples/systemd/` to | `witryna validate` | Validate config and print summary | | `witryna run <site>` | Run a one-off build (synchronous) | | `witryna status` | Show deployment status | +| `witryna switch <site> <build>` | Switch active build (rollback) | +| `witryna cleanup [site]` | Remove old builds and logs | ## Configuration @@ -138,6 +160,8 @@ To build distribution packages: just build-deb # Debian .deb package just build-rpm # RPM package + just build-arch # Arch Linux package + just build-nix # Nix package ## Dependencies |
