1- IMAGE_ID := ghcr.io/hexlet-components/rest-api -example
2- PORT := 5037
1+ IMAGE_ID := ghcr.io/hexlet-components/http -example
2+ PORT := 8080
33
44setup :
55 npm ci
@@ -12,14 +12,14 @@ compile:
1212 npx tsp compile ./typespec/js-playwright/main.tsp --output-dir " ./tsp-output/js-playwright"
1313
1414dev :
15- docker rm -f rest-api -example
16- docker run -e PORT=$(PORT ) -v ./custom-server:/custom-server -p $(PORT ) :$(PORT ) --name rest-api -example $(IMAGE_ID )
15+ docker rm -f http -example
16+ docker run -e PORT=$(PORT ) -v ./custom-server:/custom-server -p $(PORT ) :$(PORT ) --name http -example $(IMAGE_ID )
1717
1818start :
19- prism mock -m -d --json-schema-faker-fillProperties=false -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml &
20- prism mock -m -d --json-schema-faker-fillProperties=false -p 4012 --host 0.0.0.0 ./tsp-output/http-protocol/@typespec/openapi3/openapi.1.0.yaml &
21- prism mock -m -d --json-schema-faker-fillProperties=false -p 4013 --host 0.0.0.0 ./tsp-output/js-playwright/@typespec/openapi3/openapi.1.0.yaml &
22- prism mock -m -d --json-schema-faker-fillProperties=false -p 4014 --host 0.0.0.0 ./tsp-output/postman/@typespec/openapi3/openapi.1.0.yaml &
19+ npx prism mock -m -d --json-schema-faker-fillProperties=false -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml &
20+ npx prism mock -m -d --json-schema-faker-fillProperties=false -p 4012 --host 0.0.0.0 ./tsp-output/http-protocol/@typespec/openapi3/openapi.1.0.yaml &
21+ npx prism mock -m -d --json-schema-faker-fillProperties=false -p 4013 --host 0.0.0.0 ./tsp-output/js-playwright/@typespec/openapi3/openapi.1.0.yaml &
22+ npx prism mock -m -d --json-schema-faker-fillProperties=false -p 4014 --host 0.0.0.0 ./tsp-output/postman/@typespec/openapi3/openapi.1.0.yaml &
2323 npm start &
2424 caddy run
2525
@@ -30,8 +30,8 @@ docker-build:
3030 docker build . -t $(IMAGE_ID )
3131
3232docker-run :
33- docker rm -f rest-api -example
34- docker run -e PORT=$(PORT ) -p $(PORT ) :$(PORT ) --name rest-api -example $(IMAGE_ID )
33+ docker rm -f http -example
34+ docker run -e PORT=$(PORT ) -p $(PORT ) :$(PORT ) --name http -example $(IMAGE_ID )
3535
3636docker-sh :
3737 docker run -e PORT=$(PORT ) -it --entrypoint sh $(IMAGE_ID )
0 commit comments