From 1a46adf1b9d71402f8c4785497d58bfca13416c0 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 26 Dec 2018 19:47:14 +0800 Subject: [PATCH] Update index.py --- plugins/gae/index.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/gae/index.py b/plugins/gae/index.py index 6c18babff..de0097b70 100755 --- a/plugins/gae/index.py +++ b/plugins/gae/index.py @@ -164,8 +164,13 @@ def projectListCmd(): contentObj = json.loads(content) asyncUser = contentObj['client_email'] cmd = getServerDir() + '/google-cloud-sdk/bin/' + pName = contentObj['project_id'] projectDir = public.getWwwDir() + '/' + args['name'] - asyncCmd = 'cd ' + projectDir + ' && ' + cmd + 'gcloud app deploy << y' + + setUserCmd = cmd + 'gcloud config set account ' + asyncUser + setUserCmd += ' && ' + cmd + 'gcloud config set project ' + pName + asyncCmd = setUserCmd + ' && cd ' + projectDir + \ + ' && ' + cmd + 'gcloud app deploy << y' return asyncCmd