mirror of
https://github.com/Rouji/filehost2.git
synced 2026-04-16 06:09:57 +00:00
im not good with computers
| .github/workflows | ||
| .sqlx | ||
| migrations | ||
| src | ||
| templates | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
filehost2
Somewhat minimalistic file hosting service.
config
via env vars, see src/settings.rs
run
migrations:
./filehost2 migrate
the thing itself:
cargo run --release
dev
tests:
SQLX_OFFLINE=true cargo test
mariadb container blah:
podman run --rm -p 3306:3306 -e MARIADB_DATABASE=filehost -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true --cgroup-manager=cgroupfs mariadb:latest &
export DATABASE_URL=mysql://root@127.0.0.1:3306/filehost
cargo run migrate
cargo run
sqlx offline cache:
cargo sqlx prepare