blob: e537d7aaed6ccdb09ed20d4faee7d746df6c32f3 [file] [log] [blame]
include ../make/bazel.mk
include ../kube/kube.mk
build:
$(BAZEL) build go/hashtag/... modules/... pages/...
release: build
$(BAZEL) run //hashtag:push_hashtag_container
push: pushk release
pushk --use-temp-checkout hashtag
run-local-instance: build
# Run "bazel build //hashtag/..." after making any frontend changes
# to pick up the change without restarting the golang server.
#
# To run locally download the service account and point to it via the
# GOOGLE_APPLICATION_CREDENTIALS environment variable.
cp config/config.json ../_bazel_bin/hashtag/pages/development/
GOOGLE_APPLICATION_CREDENTIALS=${HOME}/.hashtag_creds ../_bazel_bin/hashtag/go/hashtag/hashtag_/hashtag --local --resources_dir ../_bazel_bin/hashtag/pages/development
test:
go test ./go/...