From ec1ebe1f97626b3e5779f38a5957976a9f808626 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 5 Mar 2017 16:11:37 +0100 Subject: Use webfs instead of python server --- .tmuxinator.yml | 2 +- README.md | 6 +++--- dev | 2 +- shell.nix | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.tmuxinator.yml b/.tmuxinator.yml index f9063a4..1ffa362 100644 --- a/.tmuxinator.yml +++ b/.tmuxinator.yml @@ -9,6 +9,6 @@ windows: - sbt - ~fastOptJS - server: - - (cd public; python -m http.server 9000) + - webfsd -F -r public -f index.html -p 9000 - cover: - cd public/cover diff --git a/README.md b/README.md index 736eaf8..28de338 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ Client: sbt "~fastOptJS" ``` -Server: +Launch a HTTP server on public directory, with python3 for example : ``` sh (cd public; python -m http.server 9000) ``` -Open your browser at http://localhost:9000/classes/index-dev.html +Open your browser at http://localhost:9000/ Build ----- @@ -36,7 +36,7 @@ Install nix and follow the instructions: curl https://nixos.org/nix/install | sh ``` -Dev environment: +Launch: ``` sh ./dev diff --git a/dev b/dev index d268ec2..7334dfe 100755 --- a/dev +++ b/dev @@ -1,2 +1,2 @@ #!/bin/sh -nix-shell --command "SHELL=$SHELL tmuxinator local" +nix-shell --command "SHELL=$SHELL mux local" diff --git a/shell.nix b/shell.nix index 73eeaf6..f55834b 100644 --- a/shell.nix +++ b/shell.nix @@ -3,9 +3,9 @@ with import {}; { name = "env"; buildInputs = with pkgs; [ sbt - python3 tmux tmuxinator + webfs ]; }; } -- cgit v1.2.3