2022-03-20 23:21:38 +03:00
|
|
|
PAR := $(MAKE) -j 128
|
2022-06-08 22:50:12 +03:00
|
|
|
DOCKER_NAME := recipes
|
|
|
|
DOCKER_TAG := recipes
|
2022-03-20 23:21:38 +03:00
|
|
|
|
|
|
|
watch:
|
2022-06-08 22:50:12 +03:00
|
|
|
${PAR} deno-w sass-w
|
|
|
|
|
|
|
|
deno-w:
|
|
|
|
deno run -A --watch server.ts
|
|
|
|
|
|
|
|
sass-w:
|
|
|
|
sass -w styles/main.scss public/styles/main.css
|
2022-03-20 23:21:38 +03:00
|
|
|
|
2022-03-22 21:50:22 +03:00
|
|
|
docker-restart: docker-stop docker-run
|
|
|
|
|
|
|
|
docker-stop:
|
|
|
|
docker rm ${DOCKER_NAME} --force
|
|
|
|
|
2022-03-22 19:42:14 +03:00
|
|
|
docker-run:
|
2022-03-22 21:50:22 +03:00
|
|
|
docker run -d --restart always -p 30000:30000 --name ${DOCKER_NAME} ${DOCKER_TAG}
|
2022-03-22 19:42:14 +03:00
|
|
|
|
|
|
|
docker-build:
|
2022-03-22 21:50:22 +03:00
|
|
|
docker build -t ${DOCKER_TAG} .
|