You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :
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 ?