Skip to content

Commit

Permalink
I am adding RVM gotcha directions to the README since I ran into the …
Browse files Browse the repository at this point in the history
…same issue as another user #110 and thought at first it may be related to Whenever.  The wiki may be a good place for this instruction, but I find it much more useful / easier to find in the README.  The wikis homepage doesn't link to the relevant page, and it could be difficult for users to find (as it was for me).
  • Loading branch information
JDutil committed Jun 1, 2011
1 parent 1214114 commit 7be0626
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -102,6 +102,14 @@ If you are using different environments (such as staging, production), then you

The capistrano variable `:stage` should be the one holding your environment name. This will make the correct `:environment` available in your schedule.rb.

### RVM Integration

If your production environment uses RVM (Ruby Version Manager) you will run into a gotcha that causes your cron jobs to hang. This is not directly related to Whenever, and can be tricky to debug. Your .rvmrc files must be trusted or else the cron jobs will hang waiting for the file to be trusted. A solution is to disable the prompt by adding this line to your user rvm file in `~/.rvmrc`

rvm_trust_rvmrcs_flag=1

This tells rvm to trust all rvmrc files, which is documented here: http://wayneeseguin.beginrescueend.com/2010/08/22/ruby-environment-version-manager-rvm-1-0-0/

### The `whenever` command

$ cd /my/rails/app
Expand Down

0 comments on commit 7be0626

Please sign in to comment.