-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 785 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: setup-db stop-db delete-db reboot-db
build:
@go build -o server ./main.go
run-dev:
@go run main.go
install-deps:
@go mod download
stop-db:
@docker stop postgres
delete-db:
@docker rm postgres
reboot-db: stop-db delete-db setup-db
migrate:
@docker cp ./schema.sql postgres:/tmp/schema.sql
@docker exec -it postgres psql -U postgres -d visio -f /tmp/schema.sql
@echo "Migration successful"
build-image:
@docker build -t visio:latest .
push-image:
@docker tag visio:latest thewisepigeon/visio:latest
@docker push thewisepigeon/visio:latest
start-tailwind-compilation:
@npx tailwindcss -i ./assets/app.css -o ./public/output.css --minify --watch
build-css:
@npx tailwindcss -i ./assets/app.css -o ./public/output.css --minify
test:
@go test -p 1 -v ./...