16

フレックス環境にアプリ エンジン ノード サービスをデプロイしようとしています。以下は私の設定ですapp.yaml

runtime: nodejs8
env: flex

#to name a service use below syntax
service: exampleNodeApp

env_variables:
  NODE_ENV: "dev"
  PORT: 3000

skip_files: 
  .env

manual_scaling:
  instances: 1
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10

config は node8 イメージを使用します。私のpackage.jsonは以下の通りです

{
  "name": "expressapp",
  "version": "1.0.0",
  "private": true,
  "main": "./bin/www",
  "scripts": {
     "start": "node ./bin/www",
   },
  "dependencies": {
      "express": "~4.16.3",
   }
}

エンジンも好きなように指定してみました

{
   "node": "~8.*"
}

そして、私が使用したデバッグログを見るために

gcloud app deploy --version default1 --verbosity=debug

私が得るエラーは以下の通りです。いろいろ試しても解決しない。私のアプリはローカルで正常に動作します。助けてください!

--update-- エラーログ

UnsatisfiedRequirementsError: Your application does not satisfy all of  the requirements for a runtime of type [nodejs8].  Please correct the errors and try again.
ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type [nodejs8].  Please correct the errors and try again.
4

1 に答える 1