2021-04-23 08:38:46 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
|
|
|
if (($#>0)); then
|
2021-04-23 14:40:15 +00:00
|
|
|
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 '$*'"
|
2021-04-23 08:38:46 +00:00
|
|
|
else
|
2021-04-23 14:40:15 +00:00
|
|
|
docker run --rm -v $PWD:/home/her.esy.fun -p 3000:3000 --name her.esy.fun -it her.esy.fun
|
2021-04-23 08:38:46 +00:00
|
|
|
fi
|