# 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:** 1

<div class="post-metadata">

**Author:** ![attj](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@attj](https://meta.discourse.org/u/attj)\
**Post date:** [August 17, 2022, 9:41am UTC](https://meta.discourse.org/t/running-custom-ruby-scripts/236408/1 "2022-08-17T09:41:24Z")

</div>

I am able to accomplish the tasks that I would like to have using the rails console. However, these tasks need to run periodically and I don’t want to type each command one by one to the rails console. How can I run a ruby script on my self hosted discourse instance?

In addition, the script will read a csv file, where should I put this csv file so that it is still accessible inside the docker container and will not disappear after updates?

---

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