about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-03-02 23:33:21 +0300
committerVika <vika@fireburn.ru>2022-03-02 23:33:21 +0300
commit9c3deefd40135a4127632fb37e6b61a10949ea9f (patch)
tree2fc1c841968dac6caa6273873263840c29c0c0cc
parent56d7a24da22a08a27a6ea810c5fb10daff81e595 (diff)
downloadkittybox-9c3deefd40135a4127632fb37e6b61a10949ea9f.tar.zst
update dev script to use systemfd and cargo-watch
-rwxr-xr-xdev.sh2
-rw-r--r--flake.nix3
2 files changed, 3 insertions, 2 deletions
diff --git a/dev.sh b/dev.sh
index 682bf3d..6a580f4 100755
--- a/dev.sh
+++ b/dev.sh
@@ -6,4 +6,4 @@ export AUTHORIZATION_ENDPOINT=https://indieauth.com/auth
 export COOKIE_SECRET=1234567890abcdefghijklmnopqrstuvwxyz
 #export COOKIE_SECRET_FILE=/dev/null
 
-exec cargo run --bin kittybox
+exec systemfd --no-pid -s http::8080 -- cargo watch -x run
diff --git a/flake.nix b/flake.nix
index c1827cd..2e1966b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -262,8 +262,9 @@
       name = "rust-dev-shell";
       nativeBuildInputs = with pkgs; [
         pkg-config lld
-        # required for httpmock, not actually used
+        # required for httpmock, not actually used in the release
         openssl.dev
+        httpie systemfd cargo-watch
         (rust-bin.default.override { extensions = [ "rust-src" ]; })
         (rust-analyzer.override { rustPlatform = with rust-bin; { rustLibSrc = rust-src; }; })
       ];