Browse Source

fix port 3000

docker
parent
commit
389dfa71da
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 4
      engine/docker-run.sh
  2. 2
      engine/serve.sh

4
engine/docker-run.sh

@ -2,7 +2,7 @@
cd "$(git rev-parse --show-toplevel)" || exit 1
if (($#>0)); then
docker run --rm -v $PWD:/home/her.esy.fun --expose=3000 --name her.esy.fun -it her.esy.fun /bin/sh -c "cd /home/her.esy.fun && nix-shell --run '$*'"
docker run --rm -v $PWD:/home/her.esy.fun -p 3000:3000 --name her.esy.fun -it her.esy.fun /bin/sh -c "cd /home/her.esy.fun && nix-shell --run '$*'"
else
docker run --rm -v $PWD:/home/her.esy.fun --expose=3000 --name her.esy.fun -it her.esy.fun
docker run --rm -v $PWD:/home/her.esy.fun -p 3000:3000 --name her.esy.fun -it her.esy.fun
fi

2
engine/serve.sh

@ -10,4 +10,4 @@ fi
cd $webdir && \
echo "Serving: $webdir" && \
http-server -a dev.local -p 3000
http-server -p 3000

Loading…
Cancel
Save