Я пытаюсь развернуть проект node.js в моем проекте App Engine. команда, которую я использую, - gcloud preview app deploy app.yaml
.Ошибка при попытке развернуть проект Node.js на движок приложения Google
Это мой app.yaml файл:
runtime: nodejs
vm: true
skip_files:
- ^(.*/)?.*/node_modules/.*$
и это ошибка, я получаю: ERROR: (gcloud.preview.app.deploy) We were unable to detect the runtime to use for this application. Please specify the [runtime] field in your application yaml file or check that your application is configured correctly.
Я уверен, что я создал проект правильно, и есть также gcloud init
мой gcloud CLI.
Любая помощь будет оценена!
EDIT:
$ gcloud --version
Google Cloud SDK 99.0.0
bq 2.0.18
bq-nix 2.0.18
core 2016.02.26
core-nix 2016.02.05
gcloud
gsutil 4.17
gsutil-nix 4.15
$ gcloud components list
Your current Cloud SDK version is: 99.0.0
The latest available version is: 99.0.0
┌─────────────────────────────────────────────────────────────────────────────────┐
│ Components │
├───────────────┬─────────────────────────────────┬───────────────────┬───────────┤
│ Status │ Name │ ID │ Size │
├───────────────┼─────────────────────────────────┼───────────────────┼───────────┤
│ Not Installed │ Cloud Datastore Emulator │ gcd-emulator │ 38.1 MiB │
│ Not Installed │ Cloud Pub/Sub Emulator │ pubsub-emulator │ 10.1 MiB │
│ Not Installed │ gcloud Alpha Commands │ alpha │ < 1 MiB │
│ Not Installed │ gcloud Beta Commands │ beta │ < 1 MiB │
│ Not Installed │ gcloud app Java Extensions │ app-engine-java │ 101.4 MiB │
│ Not Installed │ gcloud app Python Extensions │ app-engine-python │ 7.2 MiB │
│ Not Installed │ kubectl │ kubectl │ 5.2 MiB │
│ Installed │ BigQuery Command Line Tool │ bq │ < 1 MiB │
│ Installed │ Cloud SDK Core Libraries │ core │ 3.9 MiB │
│ Installed │ Cloud Storage Command Line Tool │ gsutil │ 2.6 MiB │
│ Installed │ Default set of gcloud commands │ gcloud │ │
└───────────────┴─────────────────────────────────┴───────────────────┴───────────┘
В какую версию вы используете gcloud? И какие расширения вы установили? Можно проверить с помощью 'gcloud --version' и' gcloud components list' –
отредактированный пост с соответствующей информацией, спасибо! – noodlez040