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

Deploying to Google App Engine? #47

Open
dustintheweb opened this issue Dec 5, 2016 · 3 comments
Open

Deploying to Google App Engine? #47

dustintheweb opened this issue Dec 5, 2016 · 3 comments

Comments

@dustintheweb
Copy link

Great work on this so far. I have tried a few different ways to get this to deploy to a Node.js flex container in Google Cloud App Engine, but because they use a PaaS architecture, it's not very straight forward (seemingly) to get it to shake hands with the included node/express dist/server. Not sure if you've ever attempted a deploy there, but I feel like I am overlooking something.

# [START app_yaml]
runtime: nodejs
env: flex
# [END app_yaml]

skip_files:
 - ^node_modules$

My app.yaml is suspiciously simple... perhaps there is some static file juju that I am missing? If you have a spare moment to experiment, would you mind helping me look into this puzzle?

@vladotesanovic
Copy link
Owner

Hey there,

I never deploy node app to app engine, this might be first time. I am looking here https://cloud.google.com/appengine/docs/flexible/nodejs/runtime It seams that we will need to change our package.json structure.

@mklemme
Copy link

mklemme commented Jan 9, 2017

@dustintheweb You can tell GAE to route server traffic to different files/paths. Here is how I got it to redirect traffic to my prodserver.js file (the entry point for server-side rendering):

handlers:
- url: /robots.txt
  static_files: /dist/client/robots.txt
  upload: /
- url: /.*
  script: prodserver.js

@chaturprajapat
Copy link

@dustintheweb @mklemme I am also trying to deploy this repo on google cloud, can you please let me know how you did, if possible can you share your app.yaml file and changes of package.json SO that I can refer it and develop it on Google cloud.

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

4 participants