I connect to our Ubuntu production server using PuTTy.
I want to reindex a specific Model using Solr. I want to run the reindex command from the Rails Console, i.e. Modelname.reindex (as this seems to run quicker than the rake task.)
We are, however, looking at a vast volume of data and this indexing is expected to take a few hours.
I want to be able to start this task in the rails console and it should continue running even if I exit PuTTy. How to do this?
Linux: Prevent a background process from being stopped after closing SSH client suggests nohup, but I don't see if/how that can be used with the rails console.