production - Ramaze/ramaze GitHub Wiki

Cookbook

FAQ

I use multiple workers in production an authentication is not working

Ramaze, by default, uses Ramaze::Cache::LRU, a in-memory cache, to store the session. Since you have multple processes serving your app, the session cache is not shared. You have to use a distributed cache like Redis or MemCached, and tell Ramaze to use it :

Ramaze::Cache.options.session = Ramaze::Cache::Redis

Don't forget to spin up Redis, add gem 'redis' in your Gemfile, and the problem should be solved.

The nice side effect is that authentication will persist after application restart, which is something that propably already annoyed you in development mode right ?

⚠️ **GitHub.com Fallback** ⚠️