hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
3 stars 0 forks source link

Use redis as session store in production. #74

Closed hiyaryan closed 7 months ago

hiyaryan commented 7 months ago

This PR updates the session store to use Redis in production.

The first commit does the following,

hiyaryan commented 7 months ago

This PR resolves the error raised in #70

Warning: connect.session() MemoryStore is not designed for a production environment, as it will leak memory, and will not scale past a single process.

It was discovered that the default session store, MemoryStore, was being used but is not designed for production. This PR resolves this warning with redis, establishing it as the session store for the application.