From c7d71708c5d9277c594b8e4aaa90367fc15ef9af Mon Sep 17 00:00:00 2001 From: Eric Froemling Date: Thu, 6 Feb 2020 13:07:35 -0800 Subject: [PATCH] tools pipeline updates --- tools/bacloud | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/bacloud b/tools/bacloud index 2da03bc7..a8588ed8 100755 --- a/tools/bacloud +++ b/tools/bacloud @@ -45,10 +45,12 @@ VERSION = 1 TOOL_NAME = 'bacloud' -# Set BACLOUD_LOCAL env var to 1 to test with a locally-run master-server. -MASTER_SERVER_ADDRESS = ('http://localhost:23524' - if os.environ.get('BACLOUD_LOCAL') == '1' else - 'https://bamaster.appspot.com') +# Set BACLOUD_SERVER env var to LOCAL to talk to a locally-run master-server. +# Set it to TEST to talk to the 'test' app-engine service. +MASTER_SERVER_ADDRESS = ( + 'http://localhost:23524' if os.environ.get('BACLOUD_SERVER') == 'LOCAL' + else 'https://1-dot-test-dot-bamaster.appspot.com' if os.environ.get( + 'BACLOUD_SERVER') == 'TEST' else 'https://bamaster.appspot.com') CLRHDR = '\033[95m' # Header. CLRGRN = '\033[92m' # Green.