guesstimate/Makefile
William Petit d9fb51394c Frontend/backend project structure
+ Base implementation of a differential synchronization based on Neil
  Fraser article/talk

See https://www.youtube.com/watch?v=S2Hp_1jqpY8
2020-04-27 22:43:42 +02:00

30 lines
599 B
Makefile

DOKKU_URL := dokku@dev.lookingfora.name:guesstimate
watch:
modd
install-deps:
cd client && npm install
build: clean build-server build-client
build-client:
cd client && npm run build
build-server:
cd server && CGO_ENABLED=0 go build -mod=vendor -v -o bin/server ./cmd/server
clean:
rm -rf dist
dokku-build:
docker build \
-t guesstimate-dokku:latest \
.
dokku-run:
docker run -it --rm -p 8080:80 guesstimate-dokku:latest
dokku-deploy:
$(if $(shell git config remote.dokku.url),, git remote add dokku $(DOKKU_URL))
git push -f dokku $(shell git rev-parse HEAD):refs/heads/master