https://github.com/render-examples/ruby-cron-job
Ruby Cron Job Example
https://github.com/render-examples/ruby-cron-job
cron cronjob hosting render ruby scheduler
Last synced: 4 days ago
JSON representation
Ruby Cron Job Example
- Host: GitHub
- URL: https://github.com/render-examples/ruby-cron-job
- Owner: render-examples
- License: mit
- Created: 2019-09-05T22:42:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-19T00:32:21.000Z (6 days ago)
- Last Synced: 2025-06-19T01:19:55.051Z (6 days ago)
- Topics: cron, cronjob, hosting, render, ruby, scheduler
- Language: Ruby
- Homepage: https://render.com
- Size: 2.93 KB
- Stars: 5
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ruby Cron Job
This is a simple Ruby cron job example for [Render](https://render.com).
## Deployment
Fork this repo on Render and create a new **Cron Job** using your new repo and the following values:
| Field | Value |
| ---------- | --------- |
| **Environment** | `Ruby` |
| **Build Command** | `bundle install` |Set the schedule to run your command once every five minutes. See [cron expressions](https://en.wikipedia.org/wiki/Cron#CRON_expression) for the schedule format.
| Field | Value |
| ---------- | --------- |
| **Schedule** | `*/5 * * * *` |
| **Command** | `bundle exec ruby main.rb` |Save your cron job and that's it! Your command will now run every five minutes and print `Hello World from Render!` in the logs.