diff --git a/apps/simplex-store-service/README.md b/apps/simplex-store-service/README.md index d681c0ae5c..79dce8ef65 100644 --- a/apps/simplex-store-service/README.md +++ b/apps/simplex-store-service/README.md @@ -1022,10 +1022,10 @@ the service or the code server exits before it answers. ``` cabal build exe:simplex-store-service -WEBAPP_DIR=../simplex.domains/webapp ENS_CONTRACTS_DIR= ANVIL= \ - scripts/store-service/names-contract-run.sh +ENS_CONTRACTS_DIR= ANVIL= scripts/store-service/names-contract-run.sh ``` +- `WEBAPP_DIR`: the names webapp (default: the `apps/simplex-domains` submodule's `webapp/`). - `STORE_SERVICE_BIN`: the service binary (default: `cabal list-bin exe:simplex-store-service`). - `SERVICE_PORT`, `CODES_PORT`: the service's and the code server's ports (8180 and 8199). - Arguments, if given, are passed to `playwright test` in place of the default cases' title filter. diff --git a/scripts/store-service/names-contract-run.sh b/scripts/store-service/names-contract-run.sh index a940b23587..30f0ac8b3d 100755 --- a/scripts/store-service/names-contract-run.sh +++ b/scripts/store-service/names-contract-run.sh @@ -6,7 +6,7 @@ set -euo pipefail shopt -s inherit_errexit -: "${WEBAPP_DIR:?set WEBAPP_DIR to the names webapp (simplex.domains/webapp)}" +WEBAPP_DIR="${WEBAPP_DIR:-$(cd "$(dirname "$0")/../.." && pwd)/apps/simplex-domains/webapp}" : "${ENS_CONTRACTS_DIR:?set ENS_CONTRACTS_DIR to a compiled ens-contracts checkout, as for the webapp dev/start.sh}" ANVIL="${ANVIL:-anvil}" SERVICE_PORT="${SERVICE_PORT:-8180}"