Skip to content

Instantly share code, notes, and snippets.

@akhilstanis
Created February 19, 2013 06:15
Show Gist options
  • Save akhilstanis/4983513 to your computer and use it in GitHub Desktop.
Save akhilstanis/4983513 to your computer and use it in GitHub Desktop.
Snippet: Rails - Load Rails Enviornment (Used by daemons which requires rails env)
ENV['RAILS_ENV'] ||= "development"
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment