Closed
Description
I have tried the example given in the docs: https://templ.guide/commands-and-tools/hot-reload
When trying to comment-out for example the "/" route, and then saving the main.go
file, I don't see any reloads in my terminal and the route also still exists (when I refresh in the browser it still sends me the page).
I didn't find any related issues here and it's unclear to me how to debug this since no error or anything is logged.
The only thing that maybe causes this (given that it works for others (?)) is, that I am developing on NixOS.
I am using the following flake.nix
:
{
description = "Go proj flake";
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell
{
buildInputs = with pkgs;[
go
templ
gcc
];
};
}
);
}
I use it via nix develop
and run the given example command: templ generate --watch --proxy="http://localhost:8080" --cmd="go run ."
Metadata
Metadata
Assignees
Labels
No labels