Index: appengine/chromium_cq_status/makefile |
diff --git a/appengine/chromium_cq_status/makefile b/appengine/chromium_cq_status/makefile |
index 5f6b41f4e0eadf125bc95db6d6e9efec29b71446..7f416f7972b6299fd17e118e880df3342f7ad240 100644 |
--- a/appengine/chromium_cq_status/makefile |
+++ b/appengine/chromium_cq_status/makefile |
@@ -2,6 +2,9 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+# Allow overwriting application id, so one can deploy them with: |
+# $ APP_ID='whatever' make deploy |
+APP_ID ?= chromium-cq-status |
NPM_VERSION := $(shell npm --version 2>/dev/null) |
BOWER_VERSION := $(shell bower --version 2>/dev/null) |
GIT_REVISION := $(shell git rev-parse --short HEAD) |
@@ -22,6 +25,15 @@ single-test: check |
./node_modules/karma/bin/karma start --single-run |
deploy: |
- appcfg.py --oauth2 update app.yaml highend.yaml --version `git rev-parse --short HEAD` |
+ appcfg.py -A $(APP_ID)--oauth2 update app.yaml highend.yaml --version $(GIT_REVISION) |
+ |
+# This is necesary if dispatch rules are updated or for new deployments. |
+deploy-dispatch: |
+ appcfg.py -A $(APP_ID) --oauth2 update_dispatch --version $(GIT_REVISION) |
+ |
+# This is necesary if index definition is updated or for new deployments. |
+deploy-index: |
+ appcfg.py -A $(APP_ID) --oauth2 update_index --version $(GIT_REVISION) |
+ |
.PHONY: check test single-test |