From 219078173f425d2b6358606794d013a2ba676661 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Fri, 25 Oct 2024 21:44:46 +0500 Subject: [PATCH] update readme --- Makefile | 2 +- README.md | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index fcc85c3..7f5a5cf 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ compile: npx tsp compile ./typespec/js-playwright/main.tsp --output-dir "./tsp-output/js-playwright" dev: - docker run -v ./custom-server:/custom-server -p $(PORT):$(PORT) $(IMAGE_ID) + docker run -e PORT=$(PORT) -v ./custom-server:/custom-server -p $(PORT):$(PORT) $(IMAGE_ID) start: prism mock -m -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml & diff --git a/README.md b/README.md index 65585d1..e568ac3 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,16 @@ https://twirl.github.io/The-API-Book/API.ru.html ## Prerequisites -* Nodejs 20+ -* Ubuntu/Macos * Make -* Docker (for deploy) +* Docker ## Commands See [Makefile](./Makefile) ```bash -make setup -make dev # Open http://localhost:8080 +make docker-build +make docker-run # Open http://localhost:8080 ``` ---