google-photos
google-photos copied to clipboard
web app behaviors randomly when it is deployed
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.
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