Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1359)

Unified Diff: appengine/findit/util_scripts/run.sh

Issue 1852383002: [Findit] Integrate with Fracas through Pub/Sub. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Just rebase. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/third_party/uritemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/util_scripts/run.sh
diff --git a/appengine/findit/util_scripts/run.sh b/appengine/findit/util_scripts/run.sh
index 7dd4f829892d3e94a00c8d70214b84921ce3409d..f35a5a00fca4cfe2a862a37bed1b8282f606532b 100755
--- a/appengine/findit/util_scripts/run.sh
+++ b/appengine/findit/util_scripts/run.sh
@@ -12,7 +12,7 @@ FINDIT_DIR="$(realpath ${THIS_SCRIPT_DIR}/..)"
INFRA_DIR="$(realpath ${FINDIT_DIR}/../..)"
GOOGLE_APP_ENGINE_DIR="$(realpath ${INFRA_DIR}/../google_appengine)"
APP_CFG="${GOOGLE_APP_ENGINE_DIR}/appcfg.py"
-FINDIT_MODULES="${FINDIT_DIR}/app.yaml ${FINDIT_DIR}/waterfall-frontend.yaml ${FINDIT_DIR}/waterfall-backend.yaml"
+FINDIT_MODULES="${FINDIT_DIR}/app.yaml ${FINDIT_DIR}/waterfall-frontend.yaml ${FINDIT_DIR}/waterfall-backend.yaml ${FINDIT_DIR}/crash-frontend.yaml ${FINDIT_DIR}/crash-backend-fracas.yaml"
if [[ -z "${USER}" ]]; then
echo "Cannot identify who is deploying Findit. Please set USER."
@@ -64,18 +64,25 @@ run_findit_locally() {
deploy_findit_for_test() {
# Deploy a version for testing, the version name is the same as the user name.
- local app_id="findit-for-me-dev"
- if [[ "$1" == "prod" ]]; then
- app_id="findit-for-me"
+ if [[ -z ${APP_ID} ]]; then
+ if [[ "$1" == "prod" ]]; then
+ local app_id_to_use="findit-for-me"
+ else
+ local app_id_to_use="findit-for-me-dev"
+ fi
+ else
+ local app_id_to_use=${APP_ID}
fi
+ echo "app id is ${app_id_to_use}"
+
local new_version=${USER}
echo "-----------------------------------"
- python ${APP_CFG} update -A ${app_id} $FINDIT_MODULES --version ${new_version}
+ python ${APP_CFG} update -A ${app_id_to_use} $FINDIT_MODULES --version ${new_version}
echo "-----------------------------------"
- print_command_for_queue_cron_dispatch ${app_id}
+ print_command_for_queue_cron_dispatch ${app_id_to_use}
echo "-----------------------------------"
- echo Findit was deployed to "https://${new_version}-dot-${app_id}.appspot.com/"
+ echo Findit was deployed to "https://${new_version}-dot-${app_id_to_use}.appspot.com/"
}
deploy_findit_for_prod() {
« no previous file with comments | « appengine/findit/third_party/uritemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698