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

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [August 17, 2022, 11:55am UTC](https://meta.discourse.org/t/running-custom-ruby-scripts/236408/7 "2022-08-17T11:55:47Z")

</div>

You could either make it a rake task or it it in a job that you should start manually from `/sidekiq`

You can either upload your csv from the UX and pass it with a setting value as suggested, or upload it into a topic and have your script get the most recent post/upload in the topic, or upload it to /var/discourse/shared/standalone/xxx.csv and the access it as /shared/xxx.csv in the script. Or maybe you should be doing the whole thing with the API rather than uploading a csv file.

You don’t describe what you’re trying to do, just your solution that might not be the best one.

---

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