| OLD | NEW |
| 1 # Copyright 2017 The LUCI Authors. | 1 # Copyright 2017 The LUCI Authors. |
| 2 # | 2 # |
| 3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 # you may not use this file except in compliance with the License. | 4 # you may not use this file except in compliance with the License. |
| 5 # You may obtain a copy of the License at | 5 # You may obtain a copy of the License at |
| 6 # | 6 # |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 # | 8 # |
| 9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 upload-static-dev: special command to upload an instance of the static | 64 upload-static-dev: special command to upload an instance of the static |
| 65 module named "dev". This can be whitelisted for OAuth for authenticated | 65 module named "dev". This can be whitelisted for OAuth for authenticated |
| 66 testing. | 66 testing. |
| 67 | 67 |
| 68 endef | 68 endef |
| 69 | 69 |
| 70 .PHONY: help | 70 .PHONY: help |
| 71 help: | 71 help: |
| 72 $(info $(HELP_BODY)) | 72 $(info $(HELP_BODY)) |
| 73 | 73 |
| 74 YAMLS = dispatch queue cron index |
| 75 YAML_PATHS = $(addprefix vmuser/,$(addsuffix .yaml,$(YAMLS))) |
| 76 |
| 74 .PHONY: yamls | 77 .PHONY: yamls |
| 75 yamls: vmuser/app.yaml vmuser/dispatch.yaml vmuser/index.yaml | 78 yamls: vmuser/app.yaml $(YAML_PATHS) |
| 76 | 79 |
| 77 .PHONY: web | 80 .PHONY: web |
| 78 web: | 81 web: |
| 79 -rm -rf $(APP_DIR)static/dist | 82 -rm -rf $(APP_DIR)static/dist |
| 80 $(LUCI_GO_DIR)/web/web.py build \ | 83 $(LUCI_GO_DIR)/web/web.py build \ |
| 81 --build-dir $(APP_DIR)static \ | 84 --build-dir $(APP_DIR)static \ |
| 82 logdog-app \ | 85 logdog-app \ |
| 83 logdog-view \ | 86 logdog-view \ |
| 84 rpcexplorer | 87 rpcexplorer |
| 85 | 88 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 # authentication and test a production instance. | 132 # authentication and test a production instance. |
| 130 .PHONY: upload-static-dev | 133 .PHONY: upload-static-dev |
| 131 upload-static-dev: static-resources yamls | 134 upload-static-dev: static-resources yamls |
| 132 cd $(APP_DIR) && \ | 135 cd $(APP_DIR) && \ |
| 133 gcloud app deploy \ | 136 gcloud app deploy \ |
| 134 --project $(CLOUD_PROJECT) \ | 137 --project $(CLOUD_PROJECT) \ |
| 135 --version "dev" \ | 138 --version "dev" \ |
| 136 --quiet \ | 139 --quiet \ |
| 137 --no-promote \ | 140 --no-promote \ |
| 138 static/module-static.yaml | 141 static/module-static.yaml |
| 142 |
| 143 $(addprefix update-,$(YAMLS)): update-%: |
| 144 cd $(APP_DIR) && \ |
| 145 gcloud app deploy \ |
| 146 --project $(CLOUD_PROJECT) \ |
| 147 --quiet \ |
| 148 vmuser/$*.yaml |
| OLD | NEW |