Created
August 9, 2022 16:10
-
-
Save alexishida/cf64a3f9de085c903aeb53a6758509ae to your computer and use it in GitHub Desktop.
schedule.rb cron gem whenever rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| env :PATH, "/opt/oracle/instantclient_12_2:#{ENV['PATH']}" | |
| env :LD_LIBRARY_PATH, '/opt/oracle/instantclient_12_2' | |
| env :GEM_PATH, ENV['GEM_PATH'] | |
| ENV.each { |k, v| env(k, v) } | |
| env :RAILS_ENV, ENV['RAILS_ENV'] | |
| # env :PATH, ENV['PATH'] | |
| set :output, error: 'log/whenever_error.log', standard: 'log/whenever.log' | |
| every '20 10 2 * *' do | |
| runner 'Job.run' | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment