# Running custom ruby scripts

**URL:** <https://meta.discourse.org/t/running-custom-ruby-scripts/236408>\
**Category:** Development\
**Created:** [August 17, 2022, 9:41am UTC](https://meta.discourse.org/t/running-custom-ruby-scripts/236408 "2022-08-17T09:41:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [August 17, 2022, 9:57am UTC](https://meta.discourse.org/t/running-custom-ruby-scripts/236408/2 "2022-08-17T09:57:01Z")

</div>

One approach is to upload the file and then store the url in a setting. Uploading a file will prevent it getting deleted.

You can have a job run in a plugin. There are loads of examples of jobs in discourse and Pavilion plugins.

---

_[View the full topic](https://meta.discourse.org/t/running-custom-ruby-scripts/236408)._
