I have a Mailman server script that checks for incoming email and loads it into the rails app database. The script (should) run continuously and checks for new email every 60 seconds. I was able to run the script on Heroku using heroku run:detached script/mailman_server, but when I checked back a few days later it wasn’t running. How can I ensure it is always running?
I have a Mailman server script that checks for incoming email and loads it
Share
You should use the Cedar stack, and add a Procfile. Eg. Something like…
Then:
On the command line will add one worker. However. Should the worker encounter some kind of error and close you would need additional config to restart it.