Fix settings for local test server
GitOrigin-RevId: 0f4f1460f12317bbcd3be8af5701955085d545a0
diff --git a/settings.py b/settings.py
index d1f9b61..46992a3 100644
--- a/settings.py
+++ b/settings.py
@@ -315,6 +315,33 @@
# ````
# Leaving empty for now
redis_host = ''
+ elif app_id == 'monorail-staging':
+ site_name = 'Monorail Staging'
+ banner_message = 'This staging site does not send emails.'
+ # The Google Cloud SQL databases to use.
+ db_cloud_project = app_id
+ branded_domains = branded_domains
+ domain_to_default_project = domain_to_default_project
+ # For each of these redis_hosts, they must match the corresponding
+ # HOST address of the redis instance for the environment. You can use
+ # the following command to find it.
+ # ```
+ # gcloud redis instances list --project monorail-staging \
+ # --region us-central1
+ # ````
+ redis_host = '10.228.109.51'
+
+ elif app_id == 'monorail-dev':
+ site_name = 'Monorail Dev'
+ banner_message = 'This dev site does not send emails.'
+ # The Google Cloud SQL databases to use.
+ db_cloud_project = app_id
+ branded_domains = branded_domains
+ domain_to_default_project = domain_to_default_project
+ # See comment above on how to find this address.
+ redis_host = '10.150.170.251'
+ # Use replicas created when testing the restore procedures on 2021-02-24
+ db_replica_prefix = 'replica-2'
if local_mode:
site_name = 'Monorail Local'
@@ -322,6 +349,7 @@
redis_host = 'localhost'
# Run cloud tasks emulator at port 9090
CLOUD_TASKS_EMULATOR_ADDRESS = '127.0.0.1:9090'
+ CLOUD_TASKS_REGION = 'us-central1'
# Combine the customized info above to make the name of the primary DB instance.
db_instance = db_cloud_project + ':' + db_region + ':' + db_primary_name