blob: 179bbb1af61f2d60b8f2f0fbfc49d4a2ea7f7bfb [file] [log] [blame]
include ../make/bazel.mk
PORT?=:8000
PROM_PORT?=:20000
build:
${BAZEL} build go/... modules/... pages/...
release: build
${BAZEL} run //scrap:push_scrapexchange_container
# Review section in README.md before running this target
push_I_am_really_sure: release
$(BAZEL) run --config=mayberemote //kube/go/pushk -- --override-sha256-digests --use-temp-checkout scrapexchange
testgo:
go test ./go/...
testjs:
${BAZEL} test modules/...
serve:
@echo "Bazel doesn't have a serve-all option."
@echo "For the module under development, try running something like:"
@echo "bazel run modules/scrap-exchange-sk:demo_page_server"
run-local-instance: build
# Run "bazel build //scrap/..." after making any frontend changes
# to pick up the change without restarting the golang server.
../_bazel_bin/scrap/go/scrapexchange/scrapexchange_/scrapexchange --local \
--port $(PORT) --prom_port $(PROM_PORT) \
--resources_dir ../_bazel_bin/scrap/pages/development \
--bucket=skia-public-scrap-exchange