Hi all, I’m running a ruby script on my local environment using
rails runner to execute - the script constantly loops every few secs to monitor an external API. However, sometimes the script gets terminated by an error originating from the external API or a SSL connection failure, plus I can’t run it while my laptop is away from wifi.
I would like to run the script on a cloud server (AWS/heroku/zeit etc.) that will automatically restart the script whenever it fails, with a minimum amount of setup. Or if it’s faster, with cronjobs. Anyone has any suggestions?