Formatting, no toc
This commit is contained in:
@@ -48,8 +48,9 @@
|
||||
|
||||
serve = pkgs.writeShellApplication {
|
||||
name = "serve";
|
||||
runtimeInputs = [ pkgs.python3 ];
|
||||
runtimeInputs = [ pkgs.python3 pkgs.psmisc ];
|
||||
text = ''
|
||||
fuser -k 8080/tcp 2>/dev/null || true
|
||||
echo "Serving site at http://localhost:8080"
|
||||
python -m http.server --bind 0.0.0.0 8080 -d ${site}
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user