From 5610a5f0bf1a9df02bd3d5b55e2cdebef2440360 Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 24 May 2022 17:18:30 +0300 Subject: flake.nix: reorganize - Kittybox's source code is moved to a subfolder - This improves build caching by Nix since it doesn't take changes to other files into account - Package and test definitions were spun into separate files - This makes my flake.nix much easier to navigate - This also makes it somewhat possible to use without flakes (but it is still not easy, so use flakes!) - Some attributes were moved in compliance with Nix 2.8's changes to flake schema --- dev.sh | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 dev.sh (limited to 'dev.sh') diff --git a/dev.sh b/dev.sh deleted file mode 100755 index fa39dcc..0000000 --- a/dev.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -export RUST_LOG="info,kittybox=debug,retainer::cache=warn,h2=warn,rustls=warn" -export BACKEND_URI=file://./test-dir -export TOKEN_ENDPOINT=https://tokens.indieauth.com/token -export AUTHORIZATION_ENDPOINT=https://indieauth.com/auth -export COOKIE_SECRET=1234567890abcdefghijklmnopqrstuvwxyz -#export COOKIE_SECRET_FILE=/dev/null -if [[ "$1" == "watch" ]]; then - shift - exec systemfd --no-pid -s http::8080 -- cargo watch -x run "$@" -elif [[ "$1" == "run" ]]; then - shift 1 - exec cargo run "$@" -else - echo "Usage: ./dev.sh [watch|run]" - exit 1 -fi -- cgit 1.4.1