pleshevski.ru/makefile

27 lines
448 B
Makefile
Raw Normal View History

2022-03-20 23:21:38 +03:00
PAR := $(MAKE) -j 128
DOCKER_NAME := recipes
DOCKER_TAG := recipes
2022-03-20 23:21:38 +03:00
watch:
${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} .
2023-02-03 02:55:42 +03:00
help:
cat makefile