Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello Worlds provides an AppEngine standard version, which doesn't work (yet) #651

Closed
lukeschaefer opened this issue Jun 10, 2018 · 6 comments

Comments

@lukeschaefer
Copy link

In appengine/hello-world/standard - it describes how to launch a nodejs app in the standard AppEngine platform. But this doesn't work ("Invalid runtime nodejs8 selected") - and the link to the docs (https://cloud.google.com/appengine/docs/standard/nodejs) 404s. So far, there hasn't been any mention in documentation that nodejs is supported in AppEngine standard.

@lukeschaefer
Copy link
Author

Welp - appears I was two days early to trying it out!
https://cloudplatform.googleblog.com/2018/06/Now-you-can-deploy-your-Node-js-app-to-App-Engine-standard-environment.html

@techieshark
Copy link

techieshark commented Sep 21, 2018

Note the docs say to use nodejs8 but the code seems to only permit nodejs.

image

And the error message is a bit confusing (here instead of nodejs I used runtime: reallygooglereally in the app.yaml):

image

If I try nodejs8 I got this similar error:

"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."

Update:

The above is true for the "flexible" app engine environment (env: flex in app.yaml) . The standard environment allows nodejs8. (See reference for runtime: in App Engine flexible environment app.yaml vs standard environment app.yaml).

@mrwillis
Copy link

Yes this is confusing documentation. I'm using flex and I tried nodejs8 then I got some obscure error exactly as above.

@somangshu
Copy link

when i set runtime: nodejs the service gets deployed but gives a warning at the beginning that my package.json requires node 8.0

What is the version used by runtime: nodejs with env: flex

@CharlieHess
Copy link

What is the version used by runtime: nodejs with env: flex

Looks like it uses the version defined in the engines field in package.json.

@aneesshameed
Copy link

aneesshameed commented Oct 4, 2019

For flex env, in app.yaml you need following, Do don't specify the version in app.yaml
runtime: nodejs
env: flex

and in package.json you need to specify the version
"engines": {
"node": "8.x.x"
},

Here are the list of version
8.x.x
^8.0.0
~8
>=6

More details: https://cloud.google.com/appengine/docs/standard/nodejs/runtime

grayside pushed a commit that referenced this issue Oct 26, 2022
* chore(main): release 3.0.3

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
grayside pushed a commit that referenced this issue Nov 3, 2022
* chore(main): release 3.0.3

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants