19 lines
429 B
Makefile
19 lines
429 B
Makefile
all: docker prerequesits sass gorunapp
|
|
|
|
docker:
|
|
docker-compose -f Docker/compose.yml up -d
|
|
sleep 5
|
|
prerequesits:
|
|
mkdir -p ./app/cache
|
|
gorunapp:
|
|
cd app; \
|
|
go mod tidy; \
|
|
go run main.go
|
|
clean:
|
|
docker-compose -f Docker/compose.yml down
|
|
sudo rm ./app/cache -rf
|
|
sudo rm ./Docker/mariadb/mysql/* -rf
|
|
sass:
|
|
sass --watch ./webui/css/index.scss:./webui/css/index.css &
|
|
ui-test:
|
|
cd ui; env CHROME_BIN=/usr/bin/chromium npm test
|