Making RVM play nicely with system scripts
Situation: you have a Rails app, which uses RVM and specifies its Ruby version with a .ruby-version file. You want to use that app in a system script, such as, a Cron job, or start from an init.d script, or any other place that’s not a user shell. And it doesn’t work, failing with strange error messages.
August 5, 2013