https://github.com/joshi4/ruby-cronjob
https://github.com/joshi4/ruby-cronjob
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/joshi4/ruby-cronjob
- Owner: joshi4
- License: mit
- Created: 2022-11-22T23:28:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T23:28:34.000Z (over 3 years ago)
- Last Synced: 2025-08-24T17:47:05.210Z (11 months ago)
- Language: Ruby
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- 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.