google-cloud-sdk

Deploying basic Angular 2 app to Google App Engine

只愿长相守 提交于 2019-12-17 10:34:32
问题 I can use Angular 2 to create basic front-end applications and can use python to create back-ends with endpoints on Google App engine. I can't however seem to figure out how to put the two together and deploy them with the cloud SDK. Here is a basic example where I can't even host a simple angular2 app with no back-end calls on GAE. I have taken the dist folder after building with angular2 CLI and tried to connect to it with the app.yaml file. It seems to work in the browser developer (dev

How to specify the root folder to deploy an app using the Cloud SDK?

夙愿已清 提交于 2019-12-13 03:22:29
问题 I'm using "Google App Engine" from GCP to host a static website. I already created the website files (HTML, JS) and yaml using Visual Studio Code. I have the folder with those files stored locally in my local computer. I downloaded the Cloud SDK Shell for Windows. I logged in to my account, and selected the project. According to videos and tutorials, I need to deploy the app using "gcloud app deploy". However I got an error saying that an "app.yaml" file is required to deploy this directory..

gsutil command crashes every time on Windows 10

ぐ巨炮叔叔 提交于 2019-12-11 14:49:44
问题 Whenever I run some gsutil command, for example gsutil components update , it exits with this error: ERROR: gcloud crashed (LookupError): unknown encoding: cp65001 If you would like to report this issue, please run the following command: gcloud feedback To check gcloud for common problems, please run the following command: gcloud info --run-diagnostics Running gloud info --diagnostics as it suggests also fails with the same error: Network diagnostic detects and fixes local network connection

(gcloud.preview.app.deploy) Error Response: [400] “env” setting is not supported for this deployment

谁都会走 提交于 2019-12-11 12:44:22
问题 I try these tutorial https://cloud.google.com/tools/cloud-repositories/docs/push-to-deploy, and I do mvn gcloud:deploy ,but got the error messages bellow: [dev-jenkins-test-1] $ /bin/sh -xe /tmp/hudson4310631253025446569.sh + mvn gcloud:deploy [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building jenkins-test-java 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO]

Error when following google object detection API tutorial

馋奶兔 提交于 2019-12-11 07:06:45
问题 While following the tutorial in here, I've reached the stage of training the model on the cloud. Unfortunately, the command gcloud ml-engine jobs submit training `whoami`_object_detection_`date +%s` \ --job-dir=gs://${YOUR_GCS_BUCKET}/train \ --packages dist/object_detection-0.1.tar.gz,slim/dist/slim-0.1.tar.gz \ --module-name object_detection.train \ --region us-central1 \ --config object_detection/samples/cloud/cloud.yml \ -- \ --train_dir=gs://${YOUR_GCS_BUCKET}/train \ --pipeline_config

Any gcloud Command Fails With ImportError: No module named __future__ Mac [duplicate]

↘锁芯ラ 提交于 2019-12-11 06:59:24
问题 This question already has answers here : Mac gcloud install ImportError: No module named __future__ (3 answers) Closed 10 months ago . I'm on MacOS. My default python is a virtual environment created from a brew install of Python 2.7.15. My PATH is set up so that the venv is the default python and python2.7 . I had some issues installing gcloud that have been resolved and I have successfully installed gcloud. However, any time I try to run any gcloud command I still get the same ImportError I

Google Cloud SDK vs Google Cloud Client Libraries

↘锁芯ラ 提交于 2019-12-11 06:27:32
问题 How do they differ? and what is the use case for each? Is it possible for me to use one exclusively, such as if I'm more familiar with .NET I could do everything using the Client Library (for .NET) that I could with python and the SDK? Google Cloud SDK https://cloud.google.com/sdk/docs/ Google Cloud Client Libraries https://cloud.google.com/apis/docs/cloud-client-libraries 回答1: The Cloud SDK is a set of command line tools (gcloud, gsutil, and bq). The use of the term 'SDK' here seems to be

Google cloud dev_appserver.py unable to host laravel project locally

余生颓废 提交于 2019-12-11 00:59:08
问题 I'm running Laravel 5.4 project, and hosted under google cloud project. In order to test the same I have used dev_appserver.py app.yaml --runtime=php55 it initiates the program but it throws the error displayed Warning: require(/Users/Avi/Documents/.../website/PLACEHOLDER): failed to open stream: No such file or directory in /Users/Avi/Downloads/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 147 Fatal error: require(): Failed opening

Google Cloud SDK installation error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 197: ordinal not in range(128)

Deadly 提交于 2019-12-10 13:37:14
问题 Google Cloud SDK installation process is failing on my machine(MAC) and giving me following stack trace. Traceback (most recent call last): File "/Users/ttn/Desktop/google-cloud-sdk/bin/bootstrapping/install.py", line 218, in <module> main() File "/Users/ttn/Desktop/google-cloud-sdk/bin/bootstrapping/install.py", line 203, in main sdk_root=bootstrapping.SDK_ROOT, File "/Users/ttn/Desktop/google-cloud-sdk/lib/googlecloudsdk/core/platforms_install.py", line 452, in UpdateRC completion_update,

Upgrading google-cloud-sdk Fails on Configure

為{幸葍}努か 提交于 2019-12-10 10:05:38
问题 Upgrading gcloud on Ubuntu 16.04 fails on postinst configuration. The google-cloud-sdk has been installed and used without installation problems, but this is aborting the upgrade at the configuration phase. The problem seems to be that the postinst script is executing a Python3 script with the Python2 interpreter, which fails on a Python3 syntax line. # sudo dpkg --configure google-cloud-sdk Setting up google-cloud-sdk (131.0.0-0) ... dpkg: error processing package google-cloud-sdk (-