| 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 » gae.py devserver --app-dir $(projdir)/appengine -- --host 0.0.0.0 --port
8082 --admin_port 7999 --log_level debug | 9 » gae.py devserver --app-dir $(projdir)/frontend/appengine -- --host 0.0.0
.0 --port 8082 --admin_port 7999 --log_level debug |
| 10 | 10 |
| 11 # This is intentionally not dependent on the others below to avoid | 11 # This is intentionally not dependent on the others below to avoid |
| 12 # asking for user confirmation multiple times. | 12 # asking for user confirmation multiple times. |
| 13 up: up-all up-dispatch | 13 up: up-all up-dispatch |
| 14 | 14 |
| 15 up-all: | 15 up-all: |
| 16 » gae.py upload -A luci-milo --app-dir $(projdir)/appengine/frontend defau
lt pubsub api | 16 » gae.py upload -A luci-milo --app-dir $(projdir)/frontend/appengine defau
lt pubsub api |
| 17 | 17 |
| 18 up-default: | 18 up-default: |
| 19 » gae.py upload -A luci-milo --app-dir $(projdir)/appengine/frontend defau
lt | 19 » gae.py upload -A luci-milo --app-dir $(projdir)/frontend/appengine defau
lt |
| 20 | 20 |
| 21 up-pubsub: | 21 up-pubsub: |
| 22 » gae.py upload -A luci-milo --app-dir $(projdir)/appengine/frontend pubsu
b | 22 » gae.py upload -A luci-milo --app-dir $(projdir)/frontend/appengine pubsu
b |
| 23 | 23 |
| 24 up-api: | 24 up-api: |
| 25 » gae.py upload -A luci-milo --app-dir $(projdir)/appengine/frontend api | 25 » gae.py upload -A luci-milo --app-dir $(projdir)/frontend/appengine api |
| 26 | 26 |
| 27 up-dispatch: | 27 up-dispatch: |
| 28 » appcfg.py -A luci-milo update_dispatch $(projdir)/appengine/frontend | 28 » appcfg.py -A luci-milo update_dispatch $(projdir)/frontend/appengine |
| 29 | 29 |
| 30 up-dev: up-dev-logs | 30 up-dev: up-dev-logs |
| 31 » gae.py upload -A luci-milo-dev --app-dir $(projdir)/appengine default pu
bsub api | 31 » gae.py upload -A luci-milo-dev --app-dir $(projdir)/frontend/appengine d
efault pubsub api |
| 32 » appcfg.py -A luci-milo-dev update_dispatch $(projdir)/appengine/frontend | 32 » appcfg.py -A luci-milo-dev update_dispatch $(projdir)/frontend/appengine |
| 33 | 33 |
| 34 up-dev-default: | 34 up-dev-default: |
| 35 » gae.py upload -A luci-milo-dev --app-dir $(projdir)/appengine/frontend d
efault | 35 » gae.py upload -A luci-milo-dev --app-dir $(projdir)/frontend/appengine d
efault |
| 36 | 36 |
| 37 up-dev-logs: | 37 up-dev-logs: |
| 38 » gcloud app deploy --project luci-milo-dev --version dev $(projdir)/appen
gine/logs/module-logs.yaml | 38 » gcloud app deploy --project luci-milo-dev --version dev $(projdir)/logs/
module-logs.yaml |
| 39 | 39 |
| 40 test: | 40 test: |
| 41 go test ./... | 41 go test ./... |
| 42 | 42 |
| 43 train: gen | 43 train: gen |
| 44 go test ./... -test.generate | 44 go test ./... -test.generate |
| 45 | 45 |
| 46 gen: | 46 gen: |
| 47 go generate ./... | 47 go generate ./... |
| OLD | NEW |