Google Cloud deployment #1785
-
I am looking at deploying to GAE; curious why its not listed in the deployment options. anyone already do this? i think its just a matter of integrating GAEs app.yaml handler approach |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
https://cloud.google.com/community/tutorials/run-expressjs-on-google-app-engine https://cloud.google.com/appengine/docs/standard/nodejs/config/appref https://cloud.google.com/appengine/docs/standard/nodejs/config/appref#handlers_element does gcloud deploy upload files from static_dir entries in handlers? |
Beta Was this translation helpful? Give feedback.
-
build with: # .env.production
PUBLIC_PATH=/ # app.yml
runtime: nodejs
env: flex
entrypoint: build/server.js
handlers:
# All URLs beginning with /static are treated as paths to
# static files in the build/public/static directory.
- url: /static
static_dir: build/public/static
- url: /.*
secure: always
redirect_http_response_code: 301
script: auto |
Beta Was this translation helpful? Give feedback.
-
You could bundle everything with iso-severless buildType But express won’t bundle nicely. I need to add docs on how to bundle express using contextreplacement plugin in webpack |
Beta Was this translation helpful? Give feedback.
build with:
# .env.production PUBLIC_PATH=/