diff --git a/src/metrics_server/README.md b/src/metrics_server/README.md index 49afdecc..e6dfcfe9 100644 --- a/src/metrics_server/README.md +++ b/src/metrics_server/README.md @@ -10,9 +10,10 @@ The Outline Metrics Server is built using [Google Cloud Functions](https://cloud Run `yarn do metrics_server/build` ## Deploying -To deploy +You must have access to the project `uproxysite`. + +To deploy: * Authenticate with gcloud: `gcloud auth login` -* Select the gcloud project to uproxysite: `gcloud config set project uproxysite` * Run the deploy script: * to deploy to test: `yarn do metrics_server/deploy_test` * to deploy to prod: `yarn do metrics_server/deploy_prod` diff --git a/src/metrics_server/deploy_prod_action.sh b/src/metrics_server/deploy_prod_action.sh index e35cec8a..84898e75 100755 --- a/src/metrics_server/deploy_prod_action.sh +++ b/src/metrics_server/deploy_prod_action.sh @@ -22,4 +22,4 @@ readonly CONFIG_FILE=$MODULE_DIR/config_prod.json $MODULE_DIR/build.sh $OUT_DIR $CONFIG_FILE # Deploy as "reportHourlyConnectionMetrics" -gcloud beta functions deploy reportHourlyConnectionMetrics --stage-bucket uproxy-cloud-functions --trigger-http --source=$OUT_DIR --entry-point=reportHourlyConnectionMetrics +gcloud --project=uproxysite beta functions deploy reportHourlyConnectionMetrics --stage-bucket uproxy-cloud-functions --trigger-http --source=$OUT_DIR --entry-point=reportHourlyConnectionMetrics diff --git a/src/metrics_server/deploy_test_action.sh b/src/metrics_server/deploy_test_action.sh index e3a09579..2321c53b 100755 --- a/src/metrics_server/deploy_test_action.sh +++ b/src/metrics_server/deploy_test_action.sh @@ -22,4 +22,4 @@ readonly CONFIG_FILE=$MODULE_DIR/config_test.json $MODULE_DIR/build.sh $OUT_DIR $CONFIG_FILE # Deploy as "reportHourlyConnectionMetricsTest" -gcloud beta functions deploy reportHourlyConnectionMetricsTest --stage-bucket uproxy-cloud-functions --trigger-http --source=$OUT_DIR --entry-point=reportHourlyConnectionMetrics +gcloud --project=uproxysite beta functions deploy reportHourlyConnectionMetricsTest --stage-bucket uproxy-cloud-functions --trigger-http --source=$OUT_DIR --entry-point=reportHourlyConnectionMetrics