We have built a set of continuously running processes that extend Discourse behavior using the Ruby API, observing various conditions and taking actions such as sending PMs, adding users to groups, etc. In hindsight, it may have been better to build this logic as a plugin. Now we are wondering:
-
Would it be ok / advisable to run this continuously looping set of processes on our DigitalOcean Droplet, say by cloning the repo into a directory under /var, installing Ruby, and running it there?
-
If not, any other suggestions for a production server to run such a set of processes against a Discourse instance?
-
Is there any advice, best practice to simplify migrating endpoint-oriented API code to a Plugin?