So I have a weird question, is there a way in rails to trigger a task in a separate environment: Here is the scenario, I have a daily task that replicates all the data on production to a lower (demo) environment. At the end of this transfer I need to be able to reset the password for all users on the lower environment. Since I am initiating the task in production…I cant think of a way for demo to know when the replication is finished and start resetting passwords. I have thought about making it another time based task, that runs only in the demo environment a few minutes after the expected finish time of the replication task..but is there a smarter, prettier way of doing this?
Share
I think you are looking for something like Capistrano, which allows you to define tasks/commands that are executed remotely, provided you have SSH access to the remote machine from the machine from which the task is executed. Ideally, a single Capistrano task would initiate the data replication and execute the password reset immediately afterwards.