Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 452817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:06:38+00:00 2026-05-12T22:06:38+00:00

I have setup my schedule.rb file as follows. set :cron_log, /log/cron_log.log if Rails.env.development? every

  • 0

I have setup my schedule.rb file as follows.

set :cron_log, "/log/cron_log.log"
if Rails.env.development?
  every 1.minute do
    runner "SomeModel.move_values"
    runner "SomeOtherModel.dispense"
   end
end

I also make it work in development mode by
whenever –update-crontab trunk –set environment=development

But my model methods (class methods) are never called. Is there some way I can verify if its configured right.
when I simply use update it resets the settings to use the production environment.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:06:38+00:00Added an answer on May 12, 2026 at 10:06 pm

    I just got done using that same javan-whenever plugin.

    In terminal, type crontab -l.
    If you see the crontab properly generated then you know it’s either the code or some server thing.

    You may want to consider doing set :environment, RAILS_ENV in your schedule.rb file to set the environment dynamically.

    Ryan Bates has done a good screencast on this:
    http://railscasts.com/episodes/164-cron-in-ruby

    Also, there are web-based alternatives, for example:
    webbasedcron

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have setup airbrake in my app but it doesn't seem to log any
I have setup some simple associations in my rails app: resources :properties do resources
I have an appender setup like this <appender name=Scheduler_Appender type=log4net.Appender.RollingFileAppender> <file value=c:\temp\ApplicationLog.txt/> <rollingStyle value=Date/>
I have a perl .exe file that I was to run every ten minutes.
I have a scheduled task set up to run Scan.aspx every 3 minutes in
I have setup my Django env like this: INSTALLED_APPS = ( .... 'djcelery', )
So I have an R file that I would like to schedule to run
I have developed a simple batch file which I want to set up as
I have task setup in Windows 8 that runs after every 5 mins. This
I have setup ability for a user to specify some settings using the in-built

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.