I’m moving to ruby/rails from php, and one of the things I’ve always been curious about is that in php if I want to make a live change, I can simply edit the file, click save and it’s active (assuming I’m editing on live env); no application redeploy or downtime for my users.
With rails, almost any change I make, requires the application to be redeployed (I think?).
When I make a redeployment of a live application, what happens to all the live user’s sessions who are using the application, does it force them out and require them to re-login again? what if they refresh as the app is being re-deployed, do they see an error?
Sorry if this has an obvious answer, but I couldn’t see it in my books/tutorial. Thank you
When you are running your rails application in PROD settings, you have to restart your server for the code to effect. You can choose to store session either in database, file store, cookie. Cookie has a limitation of how much size you can use. So the best way is to use database which will store your sessions across session restart.