Put-able Into Sqlite webServer
- Rust 76%
- Nix 23.6%
- Shell 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .sqlx | ||
| contrib | ||
| migrations | ||
| npins | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| default.nix | ||
| LICENSE | ||
| package.nix | ||
| README.md | ||
| shell.nix | ||
Put-able Into Sqlite webServer
like git-pages but without the git and shoving everything into sqlite instead of object storage
quickstart
piss can be built with cargo:
cargo build -r
starting it is as simple as telling it where to put the sqlite db.
it listens on [::]:8085 by default, this can be changed with the
--bind option.
target/release/piss meow.db
to upload a site, we'll need a token, which can be generated with
the --make-token option:
target/release/piss meow.db --make-token localhost
then PUT a tarball to it
tar cC mysite . | curl -T- -H 'Authorization: Bearer 6f1cd429-3c8e-4370-acab-50f3bee5fd6f' localhost:8085
(replacing mysite with the path to the folder you want to upload,
and 6f1cd429-3c8e-4370-acab-50f3bee5fd6f with the token it gave you)