google-photos icon indicating copy to clipboard operation
google-photos copied to clipboard

web app behaviors randomly when it is deployed

Open zhangheliu opened this issue 5 years ago • 1 comments

Everything runs smoothly when it runs locally.

Following https://cloud.google.com/community/tutorials/run-expressjs-on-google-app-engine to deploy the app and website starts acting randomly.

zhangheliu avatar Jul 10 '18 07:07 zhangheliu

Thanks for trying this out!

I believe this is an issue with the way sessions are handled in express.js through 'express-sessions'. For this to work on App Engine, you may have to enable and configure memcached.

See these guides for more details and let us know if this worked for you:

  • https://cloud.google.com/nodejs/getting-started/authenticate-users#about_sessions
  • https://cloud.google.com/community/tutorials/express-memcached-session-appengine
  • You could also try this: https://github.com/GoogleCloudPlatform/cloud-datastore-session-node

jfschmakeit avatar Oct 09 '18 03:10 jfschmakeit