Skip to content

Instantly share code, notes, and snippets.

@theothermutahhir
Created March 4, 2022 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theothermutahhir/a1cfe23a9e03eb80c0f08665a8ede78e to your computer and use it in GitHub Desktop.
Save theothermutahhir/a1cfe23a9e03eb80c0f08665a8ede78e to your computer and use it in GitHub Desktop.
Reread Makefiles
# Top level Makefile
up:
docker-compose -f docker-compose.dev.yml up
up-detached:
docker-compose -f docker-compose.dev.yml up --detach
down:
docker-compose -f docker-compose.dev.yml down
appdev:
cd app && yarn dev
stacked:
$(MAKE) up& $(MAKE) appdev
build:
$(MAKE) -C ./server build
# Server Makefile
build:
go build -o reread main.go
test:
go test -race -cover -short -v ./...
lint:
golangci-lint run
run:
go run main.go
build-docker:
docker build --tag reread-server .
.PHONY: build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment