Reputation: 3935
When I try to run my nodeJS dev_app server locally to test my app.yaml file, I am getting this error:
RuntimeError: Unknown runtime 'nodejs8'; supported runtimes are 'custom', 'go', 'java', 'java7', 'java8', 'php55', 'php72', 'python', 'python-compat', 'python27', 'python37'.
However Google announced that NodeJS is now supported with AppEngine standard environment. Here's my app.yaml file:
runtime: nodejs8
service: front
handlers:
- url: /.*\.[jpg|css|js|svg|ttf]
secure: always
redirect_http_response_code: 301
static_files: public/\1
upload: public/.*
- url: /.*
secure: always
script: bin/start
PS: I updated my google cloud SDK, the current version is 209.0.0
Upvotes: 1
Views: 1063
Reputation: 39824
Unlike for other standard environment supported languages, for node.js local development doesn't appear to be using the SDK-supplied development server, which is probably why you see that error when trying to run that server. From Running locally:
To test your application's functionality before deploying, run your application in your local environment with the development tools that you usually use.
For example,
npm start
.
Upvotes: 2