forked from RedHatInsights/chrome-service-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 897 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
40
help:
@echo "Availabe commands:"
@echo "------------------"
@echo "migrate - run database migration"
@echo "dev - run server"
@echo "test - run all tests"
@echo "database - start database with .env vars"
@echo "clean - tear down database"
@echo "dev-static - serve only the static direcory using simple go server"
@echo "dev-static-node - serve only the static direcory using simple node server"
@echo " arguments:"
@echo " - port: http server port 'make dev-static-node port=8888'"
@echo "validate-schema - validates chrome static JSON schemas"
port?=8000
dev-static:
go run cmd/static/static.go $(port)
dev-static-node:
npx http-server . -a :: -p $(port)
migrate:
go run cmd/migrate/migrate.go
dev:
go run main.go
database:
podman-compose up
clean:
podman-compose down
validate-schema:
go run cmd/validate/*
publish-search-index:
go run cmd/search/*