Makefile 626 B

1234567891011121314151617181920212223242526272829303132
  1. all: backend frontend
  2. docker: Dockerfile
  3. docker build --rm -t hexasoftware.com:5000/myapp .
  4. deploy: docker
  5. docker push hexasoftware.com:5000/myapp
  6. backend: distpath
  7. @echo "Building backend... "
  8. GOPATH=${CURDIR}/backend
  9. CGO_ENABLED=0 go build -o DIST/bin/server backend/src/simple-web/server/server.go
  10. frontend: distpath
  11. @echo "Building frontend..."
  12. # Frontend
  13. @cd frontend/web;node build/build.js
  14. test: backend
  15. cd DIST;tmux split "DBHOST=localhost PORT=8080 DEVMODE=1 bin/server"
  16. cd frontend/web; npm run dev
  17. distpath:
  18. @mkdir -p DIST/bin
  19. @mkdir -p DIST/public
  20. .PHONY: all test clean backend frontend