mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-05-13 13:58:57 +00:00
Specify GCP project for deployment
This commit is contained in:
parent
1e57c660ac
commit
9fc8cb034a
3 changed files with 5 additions and 4 deletions
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue