Dmitriy Pleshevskiy
890c1f74ed
All checks were successful
continuous-integration/drone/push Build is passing
Closes #1 Reviewed-on: #2 Co-authored-by: Dmitriy Pleshevskiy <dmitriy@ideascup.me> Co-committed-by: Dmitriy Pleshevskiy <dmitriy@ideascup.me>
23 lines
427 B
Makefile
23 lines
427 B
Makefile
PAR := $(MAKE) -j 128
|
|
DOCKER_NAME := recipes
|
|
DOCKER_TAG := recipes
|
|
|
|
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
|
|
|
|
docker-restart: docker-stop docker-run
|
|
|
|
docker-stop:
|
|
docker rm ${DOCKER_NAME} --force
|
|
|
|
docker-run:
|
|
docker run -d --restart always -p 30000:30000 --name ${DOCKER_NAME} ${DOCKER_TAG}
|
|
|
|
docker-build:
|
|
docker build -t ${DOCKER_TAG} .
|