| OLD | NEW |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) | 5 mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) |
| 6 projdir := $(patsubst %/,%,$(dir $(mkfile_path))) | 6 projdir := $(patsubst %/,%,$(dir $(mkfile_path))) |
| 7 | 7 |
| 8 dev: | 8 dev: |
| 9 » $(projdir)/../../../../../../luci/appengine/components/tools/gae.py devs
erver --app-dir $(projdir)/appengine -- --host 0.0.0.0 --port 8082 --admin_port
7999 --log_level debug | 9 » gae.py devserver --app-dir $(projdir)/appengine -- --host 0.0.0.0 --port
8082 --admin_port 7999 --log_level debug |
| 10 | 10 |
| 11 up: | 11 # This is intentionally not dependent on the others below to avoid |
| 12 » $(projdir)/../../../../../../luci/appengine/components/tools/gae.py uplo
ad -A luci-milo --app-dir $(projdir)/appengine | 12 # asking for user confirmation multiple times. |
| 13 up: up-all up-dispatch |
| 14 |
| 15 up-all: |
| 16 » gae.py upload -A luci-milo --app-dir $(projdir)/appengine default pubsub
api |
| 17 |
| 18 up-default: |
| 19 » gae.py upload -A luci-milo --app-dir $(projdir)/appengine default |
| 20 |
| 21 up-pubsub: |
| 22 » gae.py upload -A luci-milo --app-dir $(projdir)/appengine pubsub |
| 23 |
| 24 up-api: |
| 25 » gae.py upload -A luci-milo --app-dir $(projdir)/appengine api |
| 26 |
| 27 up-dispatch: |
| 28 » appcfg.py -A luci-milo update_dispatch $(projdir)/appengine/frontend |
| 29 |
| 30 up-dev: |
| 31 » gae.py upload -A luci-milo-dev --app-dir $(projdir)/appengine default pu
bsub api |
| 32 » appcfg.py -A luci-milo-dev update_dispatch $(projdir)/appengine/frontend |
| 13 | 33 |
| 14 test: | 34 test: |
| 15 go test ./... | 35 go test ./... |
| 16 | 36 |
| 17 train: gen | 37 train: gen |
| 18 go test ./... -test.generate | 38 go test ./... -test.generate |
| 19 | 39 |
| 20 gen: | 40 gen: |
| 21 go generate ./... | 41 go generate ./... |
| OLD | NEW |